User Guide

355
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:
member("Demo").loop = 1
loop (Flash property)
Syntax
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
loopBounds
Syntax
sprite(whichQuickTimeSprite).loopBounds
the loopBounds of sprite whichQuickTimeSprite
Description
QuickTime sprite property; sets the internal loop points for a QuickTime cast member or sprite.
The loop points are specified as a Director list: [
startTime, endTime].
The
startTime and endTime parameters must meet these requirements:
Both parameters must be integers that specify times in Director ticks.
The values must range from 0 to the duration of the QuickTime cast member.
The starting time must be less than the ending time.
If any of these requirements is not met, the QuickTime movie loops through its entire duration.