User Guide
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.)