User Guide

676 FLVPlayback Component (Flash Professional Only)
FLVPlayback.stateChange
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("stateChange", listenerObject);
Description
Event; dispatched when playback state changes. The event object has properties state and
playheadTime.
This event can be used to track when playback enters or leaves unresponsive states (such as in
the middle of connecting, resizing, or rewinding) during which times the
play(), pause(),
stop(), and seek() methods queue the requests to be executed when the player enters a
responsive state.
The event has the property
vp, which is the index number of the video player to which this
event applies. For more information on the
vp property, see
FLVPlayback.activeVideoPlayerIndex on page 549 and
FLVPlayback.visibleVideoPlayerIndex on page 688.
Example
The following example shows the state property in the Output panel each time the
stateChange event occurs while the FLV file plays.