ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > Using cue points > Using ActionScript with cue points > Adding ActionScript cue points | |||
You can add ActionScript cue points to an FLV file using the addASCuePoint() method. The following example adds two ActionScript cue points to the FLV file when it is ready to play. It adds the first cue point using a cue point object, which specifies the time, name, and type of the cue point in its properties. The second call specifies the time and name using the method's time and name parameters.
import mx.video.*; my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/cuepoints.flv" var cuePt:Object = new Object(); //create cue point object cuePt.time = 2.02; cuePt.name = "ASpt1"; cuePt.type = "actionscript"; my_FLVPlybk.addASCuePoint(cuePt); //add AS cue point // add 2nd AS cue point using time and name parameters my_FLVPlybk.addASCuePoint(5, "ASpt2");
For more information, see FLVPlayback.addASCuePoint().
|
|
|
|