ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.buffering | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.buffering
Property; a Boolean value that is true if the video is in a buffering state. Read-only.
The following example creates a listener for the buffering event and displays a message in the Output panel when the event occurs.
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 {
if(my_FLVPlybk.buffering){
trace("The video is buffering");
}
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
FLVPlayback.buffering, FLVPlayback.BUFFERING, FLVPlayback.state, FLVPlayback.stateChange
|
|
|
|