EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 925

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...
playing (3D) 925
playing
Usage
-- Lingo syntax
spriteObjRef.playing
// JavaScript syntax
spriteObjRef.playing;
Description
Flash sprite property; indicates whether a Flash movie is playing (TRUE) or stopped (FALSE).
This property can be tested but not set.
Example
This frame script checks to see if the Flash movie sprite in channel 5 is playing and, if it is not,
starts the movie:
-- Lingo syntax
on enterFrame
if not sprite(5).playing then
sprite(5).play()
end if
end
// JavaScript syntax
function enterFrame() {
var plg = sprite(5).playing;
if (plg = 0) {
sprite(5).play();
}
}
playing (3D)
Usage
member(whichCastmember).model(whichModel).keyframePlayer.playing
member(whichCastmember).model(whichModel).bonesPlayer.playing
Description
3D #keyframePlayer and #bonesPlayer modifier property; indicates whether the modifier’s
animation playback engine is running (TRUE) or if it’s paused (FALSE).
This property can be tested but not set.
Example
This statement shows that the #keyframePlayer animation playback engine for the model
named
Alien3 is currently running.
put member("newaliens").model("Alien3").keyframePlayer.playing
-- 1
See also
play() (3D), pause() (3D), playlist, queue() (3D)