User Guide

548 FLVPlayback Component (Flash Professional Only)
FLVPlayback.ACTIONSCRIPT
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
mx.video.FLVPlayback.ACTIONSCRIPT
Description
A read-only FLVPlayback class property that contains the string constant, "actionscript",
for use as the
type property with the findCuePoint() and findNearestCuePoint()
methods.
Example
The following example uses the ACTIONSCRIPT constant to set the type property of the
findCuePoint() method.
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/
water.flv";
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object) {
var cuePt:Object = new Object(); // create cue point object
cuePt.time = 2.444;
cuePt.name = "ASCuePt1";
my_FLVPlybk.addASCuePoint(cuePt); //add AS cue point
}
my_FLVPlybk.addEventListener("ready", listenerObject)
listenerObject.playing = function(eventObject:Object) {
var rtn_obj:Object = new Object();
if(rtn_obj = my_FLVPlybk.findCuePoint(2.444,
FLVPlayback.ACTIONSCRIPT)){
trace("Found cue point " + rtn_obj.name);
}
}
my_FLVPlybk.addEventListener("playing", listenerObject)