User Guide
584 FLVPlayback Component (Flash Professional Only)
FLVPlayback.EVENT
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
mx.video.FLVPlayback.EVENT
Description
A read-only FLVPlayback class property that contains the String constant, "event". You can
use this property as the
type parameter for the findCuePoint() and
findNearesstCuePoint() methods.
Example
The following example uses the FLVPlayback.EVENT property to specify that it wants to find
a cue point named
myCue that is of the event type. It shows the returned cue point name,
time, and type properties, and the cuePoint listener displays “Hit it!” in the Output panel
when the cue point occurs.
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/
plane_cuepoints.flv";
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
if(rtn_cuePt = my_FLVPlybk.findCuePoint("myCue", FLVPlayback.EVENT)){
trace("Cue point name is: " + rtn_cuePt.name);
trace("Cue point time is: " + rtn_cuePt.time);
trace("Cue point type is: " + rtn_cuePt.type);
}
}