
336
Example
This statement displays the number of the last channel of the movie in the Message window:
put the lastChannel
lastClick()
Syntax
the lastClick
Description
Function; returns the time in ticks (1 tick = 1/60 of a second) since the mouse button was last pressed.
This function can be tested but not set.
Example
This statement checks whether 10 seconds have passed since the last mouse click and, if so, sends
the playhead to the marker No Click:
if the lastClick > 10 * 60 then go to "No Click"
See also
lastEvent()
,
lastKey
,
lastRoll
,
startTimer
lastError
Syntax
sprite(
whichSprite
).lastError
member(
whichCastmember
).lastError
Description
RealMedia sprite or cast member property; allows you to get the last error symbol returned by
RealPlayer as a Lingo symbol. The error symbols returned by RealPlayer are strings of simple
English and provide a starting point for the troubleshooting process. This property is dynamic
during playback and can be tested but not set.
The value
#PNR_OK
indicates that everything is functioning properly.
Examples
The following examples show that the last error returned by RealPlayer for the sprite 2 and the
cast member Real was
#PNR_OUTOFMEMORY
:
put sprite(2).lastError
-- #PNR_OUTOFMEMORY
put member("Real").lastError
-- #PNR_OUTOFMEMORY
lastEvent()
Syntax
the lastEvent
Description
Function; returns the time in ticks (1 tick = 1/60 of a second) since the last mouse click, rollover,
or key press occurred.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...