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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...