FLVPlayback.ALL

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

mx.video.FLVPlayback.ALL

Description

A read-only FLVPlayback class property that contains the string constant, "all". You can use this property as the type parameter for the findCuePoint() and findNearestCuePoint() methods.

Example

The following example looks among all cue points for a cue point named point2 that has a time of 7.748. The example shows the type and time properties for the cue point that was found.

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()