628
Example
This handler sets the timer to 0 when a key is pressed:
on keyDown
startTimer
end
See also
lastClick()
,
lastEvent()
,
lastKey
,
lastRoll
,
timeoutLength
,
timeoutMouse
,
timeoutPlay
,
timeoutScript
,
timer
state (3D)
Syntax
member(
whichCastmember
).state
Description
3D property; returns the current state of the referenced member in the streaming and loading
process. This property refers to the initial file import or the last file load requested.
The
state
property of the member determines what, if any, 3D Lingo can be performed on the
cast member.
This property can have any of the following values:
•
0
—indicates that the member is currently not loaded and therefore no 3D media are available.
No 3D Lingo should be performed on the member.
•
1
—indicates that the media loading has begun.
•
2
—indicates that the member’s initial load segment is loaded. All objects with a stream priority
of zero, as set upon creation of the model file, will be loaded at this time, because they are part
of the initial load segment. You can perform most 3D Lingo associated with objects that have a
load priority of zero. Do not use the
loadFile
and
resetWorld
commands during this state.
•
3
—indicates that all the additional media of the member are being loaded and decompressed.
Most 3D Lingo can be performed at this point. Do not use the
loadFile
and
resetWorld
commands during this state.
•
4
—indicates that all of the member’s media have been loaded and all decompression is
complete. All 3D Lingo can now be performed on the cast member.
•
-
1
—indicates that an undefined error occurred during the media streaming process. Because
the error may have occurred at any point during the loading process, the state of the cast
member is not reliable.
In general, avoid using Lingo on 3D cast members with a current state lower than 3.
Example
This statement shows that the cast member named PartyScene has finished loading and preparing
for playback, and no errors occurred during the load:
put member("PartyScene").state
-- 4
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...