lastEvent

Usage

-- Lingo syntax
_player.lastEvent

// JavaScript syntax
_player.lastEvent;

Description

Player property; returns the time in ticks (1 tick = 1/60 of a second) since the last mouse click, rollover, or key press occurred. Read-only.

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:

-- Lingo syntax
if (_player.lastEvent > (10 * 60)) then
   _movie.go("Help")
end if

// JavaScript syntax
if (_player.lastEvent > (10 * 60)) {
   _movie.go("Help");
}

See also

lastClick, lastKey, lastRoll, Player