EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 827

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.