EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 826

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...
826 Chapter 14: Properties
Example
The following examples show that the last error returned by RealPlayer for the sprite 2 and the
cast member Real was
#PNR_OUTOFMEMORY:
-- Lingo syntax
put(sprite(2).lastError) -- #PNR_OUTOFMEMORY
put(member("Real").lastError) -- #PNR_OUTOFMEMORY
// JavaScript syntax
trace(sprite(2).lastError); // #PNR_OUTOFMEMORY
put(member("Real").lastError); // #PNR_OUTOFMEMORY
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
lastFrame
Usage
-- Lingo syntax
_movie.lastFrame
// JavaScript syntax
_movie.lastFrame;
Description
Movie property; displays the number of the last frame in the movie. Read-only.
MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 826