337
Example
This statement checks whether 10 seconds have passed since the last mouse click, rollover, or key
press and, if so, sends the playhead to the marker Help:
if the lastEvent > 10 * 60 then go to "Help"
See also
lastClick()
,
lastKey
,
lastRoll
,
startTimer
lastFrame
Syntax
the lastFrame
Description
Movie property; displays the number of the last frame in the movie.
This property can be tested but not set.
Example
This statement displays the number of the last frame of the movie in the Message window:
put the lastFrame
lastKey
Syntax
the lastKey
Description
System property; gives the time in ticks (1 tick = 1/60 of a second) since the last key was pressed.
Example
This statement checks whether 10 seconds have passed since the last key was pressed and, if so,
sends the playhead to the marker No Key:
if the lastKey > 10 * 60 then go to "No Key"
See also
lastClick()
,
lastEvent()
,
lastRoll
,
startTimer
lastRoll
Syntax
the lastRoll
Description
System property; gives the time in ticks (1 tick = 1/60 of a second) since the mouse was last moved.
Example
This statement checks whether 45 seconds have passed since the mouse was last moved and, if so,
sends the playhead to the marker Attract Loop:
if the lastRoll > 45 * 60 then go to "Attract Loop"
See also
lastClick()
,
lastEvent()
,
lastKey
,
startTimer
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...