FLVPlayback.state
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.state
Description
Property; a string that specifies the state of the component. This property is set by the
,
,
play()
stop()
pause()
The possible values for the
,
"disconnected"
"loading"
. You can use the FLVPlayback class properties to test for these states. For more
"stopped"
information, see
"FLVPlayback Class properties" on page
Example
The following example shows the
event occurs while the FLV file plays.
stateChange
Drag an FLVPlayback component to the Stage, and give it an instance name of
my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the
Timeline:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object):Void {
trace(my_FLVPlybk.state);
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.addEventListener()
FLVPlayback.playing
, and
methods. Read-only.
seek()
property are:
state
,
,
"paused"
"playing"
property in the Output panel each time the
state
,
FLVPlayback.buffering
,
FLVPlayback.stateChange
,
"buffering"
"connectionError"
,
"rewinding"
541.
,
FLVPlayback.paused
,
FLVPlayback.stopped
load()
,
,
, and
"seeking"
,
FLVPlayback class
,
675
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers