sprite (Sprite Channel) 1005
sprite (Movie)
Usage
-- Lingo syntax
_movie.sprite[
spriteNameOrNum
]
// JavaScript syntax
_movie.sprite[
spriteNameOrNum
];
Description
Movie property; provides indexed or named access to a movie sprite. Read-only.
The
spriteNameOrNum
argument can be either a string that specifies the name of the sprite or an
integer that specifies the number of the sprite.
Example
The following statement sets the variable sportSprite to the movie sprite 5:
-- Lingo syntax
sportSprite = _movie.sprite[5]
// JavaScript syntax
var sportSprite = _movie.sprite[5];
See also
Movie
sprite (Sprite Channel)
Usage
-- Lingo syntax
spriteChannelObjRef
.sprite
// JavaScript syntax
spriteChannelObjRef
.sprite;
Description
Sprite Channel property; returns a reference to the sprite in the current frame of a sprite channel.
Read-only.
Example
This statement sets the variable
mySprite
to the sprite in the sprite channel named Ribbon.
-- Lingo syntax
mySprite = channel("Ribbon").sprite
// JavaScript syntax
var mySprite = channel("Ribbon").sprite;
See also
Sprite Channel
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...