User Guide

FLVPlayback class 565
See also
FLVPlayback.activeVideoPlayerIndex, FLVPlayback.getVideoPlayer(), VideoPlayer
class
, FLVPlayback.visibleVideoPlayerIndex
FLVPlayback.buffering
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.buffering = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("buffering", listenerObject);
Description
Event; dispatched when the FLVPlayback instance enters the buffering state. The
FLVPlayback instance typically enters this immediately after a call to the
play() method or
when the
Play control is clicked, before entering the playing state. The event object has the
properties
state, playheadTime. and vp, which is the index number of the video player to
which the event applies. See
FLVPlayback.activeVideoPlayerIndex on page 549 and
FLVPlayback.visibleVideoPlayerIndex on page 688.
The FLVPlayback instance also dispatches the
stateChange event when buffering begins.
Example
The following example creates a listener for the buffering event. When a buffering event
occurs, the event handler calls the
trace() method to display the values of the state and vp
properties.