User Guide

556 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.*;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";
// create cue point object
var listenerObject = new Object();
listenerObject.ready = function(eventObject:Object):Void {
var cuePt:Object = new Object(); // create cue point object
cuePt.name = "point2";
cuePt.time = 7.748;
if(cuePt = my_FLVPlybk.findCuePoint(cuePt, FLVPlayback.ALL)) //find cue
point
trace("found a " + cuePt.type + " cue point at " + cuePt.time);
else
trace("cue point not found");
}
my_FLVPlybk.addEventListener("ready", listenerObject);
See also
FLVPlayback.findCuePoint()
FLVPlayback.autoPlay
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.autoPlay