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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...