scriptInstanceList
975
// JavaScript syntax
if (channel(5).scripted == false) {
channel(5).makeScriptedSprite(member("kite"));
}
See also
Sprite Channel
scriptingXtraList
Usage
-- Lingo syntax
_player.scriptingXtraList
// JavaScript syntax
_player.scriptingXtraList;
Description
Player property; returns a linear list of all scripting Xtra extensions available to the Director player.
Read-only.
The Xtra extensions are those that are present in the Configuration\Xtras folder.
Example
This statement displays in the Message window all available scripting Xtra extensions:
-- Lingo syntax
trace(_player.scriptingXtraList)
// JavaScript syntax
trace(_player.scriptingXtraList);
See also
mediaXtraList
,
Player
,
Scripting Objects
,
toolXtraList
,
transitionXtraList
,
xtraList (Player)
scriptInstanceList
Usage
sprite(
whichSprite
).scriptInstanceList
the scriptInstanceList of sprite
whichSprite
Description
Sprite property; creates a list of script references attached to a sprite. This property is available
only during run time. The list is empty when the movie is not running. Modifications to the list
are not saved in the Score. This property is useful for the following tasks:
•
Attaching a behavior to a sprite for use during run time
•
Determining if behaviors are attached to a sprite; determining what the behaviors are
•
Finding a behavior script reference to use with the
sendSprite
command
This property can be tested and set. (It can be set only if the sprite already exists and has at least
one instance of a behavior already attached to it.)
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...