Using ActionScript 3.0 Components |
|
|
|
| Using the FLVPlayback Component > Using the FLVPlayback component > Using 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 fl.video.*; import fl.video.MetadataEvent; my_FLVPlybk.source = "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 the FLVPlayback.addASCuePoint() method in the ActionScript 3.0 Language and Components Reference.
|
|
|
|