MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 522

Components language reference
Table of Contents

Advertisement

You can test whether an embedded FLV file cue point is enabled using the
isFLVCuePointEnabled()
points
and
point2
point3
occurs, however, the event handler tests to see if cue point
enables it.
import mx.video.*;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
cuepoints.flv";
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
my_FLVPlybk.setFLVCuePointEnabled(false, "point2");
my_FLVPlybk.setFLVCuePointEnabled(false, "point3");
}
my_FLVPlybk.addEventListener("ready", listenerObject);
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Cue point time is: " + eventObject.info.time);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
if (my_FLVPlybk.isFLVCuePointEnabled("point2") == false) {
my_FLVPlybk.setFLVCuePointEnabled(true, "point2");
}
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
For more information, see
FLVPlayback.setFLVCuePointEnabled()
Removing an ActionScript cue point
You can remove an ActionScript cue point using the
following example removes the cue point
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Cue point name is: " + eventObject.info.name);
if (eventObject.info.name == "ASpt1") {
my_FLVPlybk.removeASCuePoint("ASpt2");
trace("Removed cue point ASpt2");
}
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
For more information, see
520
FLVPlayback Component (Flash Professional Only)
method. The following example disables the embedded cue
when the video is ready to play. When the first
FLVPlayback.isFLVCuePointEnabled()
on page
ASpt2
FLVPlayback.removeASCuePoint()
is disabled and, if so,
point3
665.
removeASCuePoint()
when cue point
ASpt1
on page
event
cuePoint
on page 599
and
method. The
occurs:
638.

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