User Guide

662 FLVPlayback Component (Flash Professional Only)
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.ready = function(eventObject:Object):Void {
my_FLVPlybk.seekToNavCuePoint("point2");
}
my_FLVPlybk.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point time is: " + eventObject.info.time);
trace("Cue point type is: " + eventObject.info.type);
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";
See also
FLVPlayback.cuePoint, FLVPlayback.seek, FLVPlayback.seek(),
FLVPlayback.seekToNextNavCuePoint()
FLVPlayback.seekToNextNavCuePoint()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.seekToNextNavCuePoint([time:Number])
Parameters
time A number that is the starting time, in seconds, from which to look for the next
navigation cue point. The default is the current
playheadTime property. Optional.
Returns
Nothing.