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