EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1005

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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