EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 556

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
556 Chapter 12: Methods
stringP()
Usage
stringP(expression)
Description
Function; determines whether an expression is a string (TRUE) or not (FALSE).
The P in
stringP stands for predicate.
Parameters
expression
Required. The expression to test.
Example
This statement checks whether 3 is a string:
put stringP("3")
The result is 1, which is the numeric equivalent of TRUE.
This statement checks whether the floating-point number 3.0 is a string:
put stringP(3.0)
Because 3.0 is a floating-point number and not a string, the result is 0, which is the numeric
equivalent of
FALSE.
See also
floatP(), ilk(), integerP(), objectP(), symbolP()
subPictureType()
Usage
-- Lingo syntax
dvdObjRef.subPictureType(intStream)
// JavaScript syntax
dvdObjRef.subPictureType(intStream);
Description
DVD method; specifies the type of a specified sub-picture stream.
This method can return the following values:
Parameters
intStream
Required. An integer that specifies the stream to test.
Symbol Description
#unknown The sub-picture type is unknown.
#Language The sub-picture contains language-related content such as movie subtitles or
other text.
#Other The sub-picture contains non language-related content such as a bouncing ball in
karaoke titles.