persistent
921
This frame script keeps the playhead looping in the current frame so long as less than 60 percent
of a Flash movie called Splash Screen has streamed into memory:
-- Lingo syntax
on exitFrame
if member("Splash Screen").percentStreamed < 60 then
_movie.go(_movie.frame)
end if
end
// JavaScript syntax
function exitFrame() {
var ssStrm = member("Splash Screen").percentStreamed;
if (ssStrm < 60) {
_movie.go(_movie.frame);
}
}
See also
percentPlayed
period
Usage
timeoutObject
.period
Description
Object property; the number of milliseconds between timeout events sent by the
timeoutObject
to the timeout handler.
This property can be tested and set.
Example
This timeout handler decreases the timeout’s
period
by one second each time it’s invoked, until a
minimum period of 2 seconds (2000 milliseconds) is reached:
on handleTimeout timeoutObject
if timeoutObject.period > 2000 then
timeoutObject.period = timeoutObject.period - 1000
end if
end handleTimeout
See also
name (timeout)
,
persistent
,
target
,
time (timeout object)
,
timeout()
,
timeoutHandler
,
timeoutList
persistent
Usage
timeoutObject
.persistent
Description
Object property; determines whether the given
timeoutObject
is removed from
the
timeoutList
when the current movie stops playing. If
TRUE
,
timeoutObject
remains active. If
FALSE
, the timeout object is deleted when the movie stops playing. The default value is
FALSE
.
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...