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.buffering = function(eventObject:Object) {
trace("The state property has a value of " + eventObject.target.state);
trace("The video player number is: " + eventObject.vp);
};
my_FLVPlybk.addEventListener("buffering", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.addEventListener()
FLVPlayback.removeEventListener()
FLVPlayback.BUFFERING
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
mx.video.FLVPlayback.BUFFERING
Description
Property; a read-only FLVPlayback class property that contains the string constant,
. You can compare this property to the
"buffering"
the component is in the buffering state.
Example
The following example displays the value of the
component enters a buffering state.
566
FLVPlayback Component (Flash Professional Only)
,
FLVPlayback.state
state
FLVPlayback.BUFFERING
,
property to determine whether
property when the
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers