User Guide

FLVPlayback class 585
my_FLVPlybk.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
if(eventObject.info.name == "myCue")
trace("Hit it!");
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
See also
FLVPlayback.findCuePoint()
FLVPlayback.fastForward
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
var listenerObject:Object = new Object();
listenerObject.fastForward = function(eventObject:Object):Void {
// insert event-handling code here
};
my_FLVplybk.addEventListener("fastForward", listenerObject);
Event; dispatched when the location of the playhead moves forward by seeking, either
manually or through ActionScript, or by clicking the ForwardButton control. The event
object has the properties
state, playheadTime, and vp. The playheadTime property reflects
the destination time, and the
vp property is the index number of the video player to which the
event applies.
The FLVPlayback instance also dispatches the
seek and playheadUpdate events.
Example
The following example catches occurrences of the fastForward event as it occurs and shows
the elapsed playhead time in the Output panel. When the
ready event occurs, a call to the
seekPercent() method triggers the fastForward event.