MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 641

Components language reference
Table of Contents

Advertisement

Example
The following example adds an ActionScript cue point to the FLV file, and then calls the
removeASCuePoint()
the Output panel.
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";
// create cue point object
var cuePt:Object = new Object(); // create cue point object
var rtn_cuePt:Object = new Object(); // create object for return value
cuePt.time = 4.444;
cuePt.name = "ripples";
my_FLVPlybk.addASCuePoint(cuePt);
if ((rtn_cuePt = my_FLVPlybk.removeASCuePoint(cuePt)) != null) {
trace("Removed cue point: " + rtn_cuePt.name);
}
See also
FLVPlayback.addASCuePoint()
FLVPlayback.findNearestCuePoint()
FLVPlayback.removeEventListener()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.removeEventListener(event:String, listener:Object):Void
my_FLVPlybk.removeEventListener(event:String, listener:Function):Void
Parameters
A string that specifies the name of the event for which you are removing a listener.
event
A reference to the listener object or function that you are removing.
listener
method to remove it. It shows the name of the removed cue point in
// add AS cue point
,
FLVPlayback.findCuePoint()
,
FLVPlayback.findNextCuePointWithName()
,
FLVPlayback class
639

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?

This manual is also suitable for:

Flash 8

Table of Contents