Lingo Dictionary > D-F > frame (sprite property) |
![]() ![]() ![]() |
frame (sprite property)
Syntax
sprite(
whichFlashSprite
).frame
the frame of sprite
whichFlashSprite
Description
Sprite property; controls which frame of the current Flash movie is displayed. The default value is 1.
This property can be tested and set.
Example
This frame script checks to see if a Flash movie has finished playing (by checking to see if the current frame is equal to the total number of frames in the movie). If the movie has not finished, the playback head continues to loop in the current frame; when the movie finishes, the playback head continues to the next frame. (This script assumes that the movie was designed to stop on its final frame and that it has not been set for looped playback.)
on exitFrame if sprite(5).frame < sprite(5).member.frameCount then go to the frame end if end
![]() ![]() ![]() |