
667
Example
This handler determines the time remaining until the next timeout event will be sent by the
timeout object
Update
by calculating the difference between its
time
property and the current
value of the milliseconds and displaying the result in the field Time Until:
on prepareFrame
msBeforeUpdate = timeout("Update").time - the milliseconds
secondsBeforeUpdate = msBeforeUpdate / 1000
minutesBeforeUpdate = secondsBeforeUpdate / 60
member("Time Until").text = string(minutesBeforeUpdate) && "minutes before
next \
timeout”
end
See also
milliseconds
,
period
,
persistent
,
target
,
timeout()
,
timeoutHandler
timeout()
Syntax
timeout("
timeoutName
")
Description
Function; returns the timeout object named
timeoutName
. Use
timeout("name").new
to add a
new timeout object to
the timeoutList
. See
new()
.
Example
This handler deletes the timeout object named Random Lightning:
on exitFrame
timeout("Random Lightning").forget()
end
See also
forget()
,
new()
,
timeoutHandler
,
timeoutList
on timeOut
Syntax
on timeOut
statement(s)
end
Description
System message and event handler; contains statements that run when the keyboard or mouse is
not used for the time period specified in
timeOutLength.
Always place an
on timeOut
handler
in a movie script.
To have a timeout produce the same response throughout a movie, use
the timeoutScript
to
centrally control timeout behavior.
Example
The following handler plays the movie Attract Loop after users do nothing for the time set in the
timeoutLength
property. It can be used to respond when users leave the computer.
on timeOut
play movie "Attract Loop"
end timeOut
See also
timeoutScript
,
timeoutLength
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...