User Guide

lastRoll 827
Example
This statement displays the number of the last frame of the movie in the Message window:
-- Lingo syntax
put(_movie.lastFrame)
// JavaScript syntax
put(_movie.lastFrame);
See also
Movie
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
lastRoll
Usage
-- Lingo syntax
_player.lastRoll
// JavaScript syntax
_player.lastRoll;
Description
Player property; gives the time in ticks (1 tick = 1/60 of a second) since the mouse was last moved.
Read-only.