ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.NAVIGATION | |||
Flash Player 8.
Flash Professional 8.
mx.video.FLVPlayback.NAVIGATION
A read-only FLVPlayback class property that contains the string constant, "navigation". You can use this property for the type parameter of the findCuePoint() and findNearestCuePoint() methods.
The following example uses the FLVPlayback.NAVIGATION property to specify the type of cue point to find.
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.*;
// find navigation cue point using time
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
var rtn_cuePt:Object = new Object();
rtn_cuePt = my_FLVPlybk.findCuePoint(7.748, FLVPlayback.NAVIGATION);
trace("Found cue point at " + rtn_cuePt.time + " of type " + rtn_cuePt.type);
}
my_FLVPlybk.addEventListener("ready", listenerObject)
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/cuepoints.flv";
FLVPlayback.findCuePoint(), FLVPlayback.findNearestCuePoint()
|
|
|
|