numChannels
899
number of members
Usage
the number of members of castLib
whichCast
Description
Cast member property; indicates the number of the last cast member in the specified cast.
This property can be tested but not set.
Example
The following statement displays in the Message window the type of each cast member in the cast
Central Casting. The
number of members of castLib
property is used to determine how many
times the loop repeats.
repeat with i = 1 to the number of members of castLib("Central Casting")
put "Cast member" && i && "is a" && member(i, "Central Casting").type
end repeat
number of xtras
Usage
the number of xtras
Description
System property; returns the number of scripting Xtra extensions available to the movie. The Xtra
extensions may be either those opened by the
openxlib
command or those present in the
Configuration\Xtras folder.
This property can be tested but not set.
Example
This statement displays in the Message window the number of scripting Xtra extensions that are
available to the movie:
put the number of xtras
numChannels
Usage
-- Lingo syntax
memberObjRef
.numChannels
// JavaScript syntax
memberObjRef
.numChannels;
Description
Shockwave Audio (SWA) cast member property; returns the number of channels within the
specified SWA streaming cast member. The value can be either 1 for monaural or 2 for stereo.
This property is available only after the SWA streaming cast member begins playing or after the
file has been preloaded using the
preLoadBuffer
command.
This property can be tested but not set.
Summary of Contents for DIRECTOR MX 2004
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...