Lingo Dictionary > L-N > loop (Flash property) |
![]() ![]() ![]() |
loop (Flash property)
Syntax
sprite(
whichFlashSprite
).loop
the loop of sprite
whichFlashSprite
member (whichFlashMember
).loop the loop of memberwhichFlashMember
Description
Flash sprite and member property; controls whether a Flash movie plays in a continuous loop (TRUE
) or plays once and then stops (FALSE
).
The property can be both tested and set.
Example
This frame script checks the download status of a linked Flash cast member called NetFlash using the percentStreamed
property. While NetFlash is downloading, the movie loops in the current frame. When NetFlash finishes downloading, the movie advances to the next frame and the loop
property of the Flash movie in channel 6 is set to FALSE
so that it will continue playing through to the end and then stop (imagine that this sprite has been looping while NetFlash was downloading).
on exitFrame if member("NetFlash").percentStreamed = 100 then sprite(6).loop = FALSE go the frame + 1 end if go the frame end
![]() ![]() ![]() |