state (Flash, SWA)
1011
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
state (Flash, SWA)
Usage
-- Lingo syntax
memberObjRef
.state
// JavaScript syntax
memberObjRef
.state;
Description
Cast member property; for Shockwave Audio (SWA) streaming cast members and Flash movie
cast members, determines the current state of the streaming file. The properties
streamName
,
URL
, and
preLoadTime
can be changed only when the SWA sound is stopped.
The following properties for the SWA file return meaningful information only after the file
begins streaming:
cuePointNames
,
cuePointTimes
,
currentTime
,
duration
,
percentPlayed
,
percentStreamed
,
bitRate
,
sampleRate
, and
numChannels.
For SWA streaming cast members, the following values are possible:
•
0—Cast streaming has stopped.
•
1—The cast member is reloading.
•
2—Preloading ended successfully.
•
3—The cast member is playing.
•
4—The cast member is paused.
•
5—The cast member has finished streaming.
•
9—An error occurred.
•
10—There is insufficient CPU space.
For Flash movie cast members, this property returns a valid value only when the Director movie is
running. The following values are possible:
•
0—The cast member is not in memory.
•
1—The header is currently loading.
•
2—The header has finished loading.
•
3—The cast member’s media is currently loading.
•
4—The cast member’s media has finished loading.
•
-1—An error occurred.
This property can be tested but not set.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...