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.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...