lastKey

Usage

-- Lingo syntax
_player.lastKey

// JavaScript syntax
_player.lastKey;

Description

Player property; gives the time in ticks (1 tick = 1/60 of a second) since the last key was pressed. Read-only.

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:

-- Lingo syntax
if (_player.lastKey > (10 * 60)) then
   _movie.go("No Key")
end if

// JavaScript syntax
if (_player.lastKey > (10 * 60)) {
   _movie.go("No Key");
}

See also

lastClick, lastEvent, lastRoll, Player