User Guide

618 FLVPlayback Component (Flash Professional Only)
FLVPlayback.paused
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.paused = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("paused", listenerObject);
Description
Event; dispatched when the player enters the paused state. This happens when you call the
pause() method or click the corresponding control and it also happens in some cases when
the FLV file is loaded if
autoPlay is false (the state may be stopped instead). The event
object has the properties
state, playheadTime, and 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.
The
stateChange event is also dispatched.
Example
The following example creates a listener for the playheadUpdate event. When the event
occurs, the event handler checks to see whether the
playheadTime property is between 5 and
5.05 seconds. If so, the event handler calls the
pause() method to suspend playing the FLV
file. This triggers a
paused event for which the paused event handler shows, “The FLV
is paused!”