
473
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:
on exitFrame
if member("Splash Screen").percentStreamed < 60 then
go to the frame
end if
end
See also
percentPlayed
percentStreamed (3D)
Syntax
member(
whichCastMember
).percentStreamed
Description
3D property; allows you to get the percentage of a 3D cast member that has been streamed. This
property refers to either the initial file import or to the last file load requested. The value returned
is an integer and has a range from 0 to 100. There is no default value for this property.
Example
This statement shows that the cast member PartyScene has finished loading.
put member("PartyScene").percentStreamed
-- 100
period
Syntax
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 property), persistent, target, time (timeout object property),
timeout(), timeoutHandler, timeoutList
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...