ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.FLV | |||
Flash Player 8.
Flash Professional 8.
mx.video.FLVPlayback.FLV
A read-only FLVPlayback class property that contains the string constant, "flv". You can use this property as the type parameter for the findCuePoint() and findNearestCuePoint() methods.
The following example looks for a cue point named point2 with a time of 7.748 among FLV file cue points and displays the type and time found. FLV file cue points are navigation and event cue points.
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 = "point3";
cuePt.time = 16.02;
if(cuePt = my_FLVPlybk.findCuePoint(cuePt, FLVPlayback.FLV)) //find cue point
trace("found a " + cuePt.type + " cue point at " + cuePt.time);
else
trace("cue point not found");
}
my_FLVPlybk.addEventListener("ready", listenerObject);
FLVPlayback.findCuePoint(), FLVPlayback.findNearestCuePoint()
|
|
|
|