MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 380

Director scripting reference
Table of Contents

Advertisement

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,
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,
380
Chapter 12: Methods
milliseconds
milliseconds

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents