ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.stateResponsive | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.stateResponsive
Property; a Boolean value that is true if the state is responsive. If the state is unresponsive, calls to the play(), load(), stop(), pause() and seek() methods are queued and executed later, when the state changes to a responsive one. Because these calls are queued and executed later, it is usually not necessary to track the value of the stateResponsive property. The responsive states are: disconnected, stopped, playing, paused, and buffering. Read only.
The following example displays the values of the state and stateResponsive properties as the state changes while the FLV file plays.
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 + "; responsive: " + my_FLVPlybk.stateResponsive);
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
FLVPlayback.state, FLVPlayback.stateChange
|
|
|
|