380
Chapter 12: Methods
lastClick()
Usage
the lastClick
Description
Function; returns the time in ticks (1 tick = 1/60 of a second) since the mouse button was
last pressed.
This function can be tested but not set.
Parameters
None.
Example
This statement checks whether 10 seconds have passed since the last mouse click and, if so, sends
the playhead to the marker No Click:
if the lastClick > 10 * 60 then go to "No Click"
See also
lastEvent()
,
lastKey
,
lastRoll
,
milliseconds
lastEvent()
Usage
the lastEvent
Description
Function; returns the time in ticks (1 tick = 1/60 of a second) since the last mouse click, rollover,
or key press occurred.
Parameters
None.
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
,
milliseconds
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...