User Guide
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.