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
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
-- Lingo syntax
mySprite = channel("Ribbon").sprite
// JavaScript syntax
var mySprite = channel("Ribbon").sprite;
See also
Sprite Channel
argument can be either a string that specifies the name of the sprite or an
to the sprite in the sprite channel named Ribbon.
mySprite
sprite (Sprite Channel) 1005
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers