-- Lingo syntax _player.lastClick // JavaScript syntax _player.lastClick;
Player property; returns the time in ticks (1 tick = 1/60 of a second) since the mouse button was last pressed. Read-only.
This statement checks whether 10 seconds have passed since the last mouse click and, if so, sends the playhead to the marker No Click:
-- Lingo syntax
if (_player.lastClick > (10 * 60)) then
_movie.go("No Click")
end if
// JavaScript syntax
if (_player.lastClick > (10 * 60)) {
_movie.go("No Click");
}
lastEvent, lastKey, lastRoll, Player