MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 550

Components language reference
Table of Contents

Advertisement

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,
for use as the
property with the
type
methods.
Example
The following example uses the
method.
findCuePoint()
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);
}
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)
548
FLVPlayback Component (Flash Professional Only)
findCuePoint()
constant to set the
ACTIONSCRIPT
//add AS cue point
"actionscript"
and
findNearestCuePoint()
property of the
type
,

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents