New "Reyco1 AS3 Tools” class - CuePointManager and CuePointEvent
Reynaldo February 7th, 2008
Hi fellow flashers and flashettes!
There has been a new pair of classes added to the tool set. The CuePointManager and the CuePointEvent. The CuePointManager class allows you to add, move, remove and handle cue points easily for your flv files dynamically. Here’s an example:
This movie requires Flash Player 9
Here’s the code for this example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import com.reyco1.manager.CuePointManager; import com.reyco1.events.CuePointEvent; my_FLVPlybk.source = "http://www.reynaldocolumna.com/blog/stuff/absinthe.flv"; var cpm:CuePointManager = new CuePointManager(my_FLVPlybk); cpm.addCuePoint({name:"pnt1", time:2}); cpm.addCuePoint({name:"pnt2", time:5}); cpm.addCuePoint({name:"pnt3", time:10}); cpm.addEventListener(CuePointEvent.CUE_POINT, cpHandler); function cpHandler($event:CuePointEvent):void { output.text += "cue point name: "+$event.params.name+", time: "+Math.round($event.params.time)+"\n"; } |
This and other classes can be found in the Reyco1 AS3 Tools.



