User Guide
loop (Flash) 841
loop (Member)
Usage
-- Lingo syntax
memberObjRef.loop
// JavaScript syntax
memberObjRef.loop;
Description
Cast member property; determines whether the specified digital video, sound, or Flash movie cast
member is set to loop (
TRUE) or not (FALSE).
Example
This statement sets the QuickTime movie cast member Demo to loop:
-- Lingo syntax
member("Demo").loop = 1
// JavaScript syntax
member("Demo").loop = 1;
loop (Flash)
Usage
sprite(whichFlashSprite).loop
the loop of sprite whichFlashSprite
member (whichFlashMember).loop
the loop of member whichFlashMember
Description
Flash sprite and member property; controls whether a Flash movie plays in a 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