import mx.events.CuePointEvent;
private function initCP():void {
var myCuePoints:Array = [
{ name: "first", time: 10},
{ name: "second", time: 20} ];
myVid.cuePointManager.setCuePoints(myCuePoints);
}
private var currentCP:Object=new Object();
private function cpHandler(event:CuePointEvent):void {
cp.text="go to cuepoint: " + event.cuePointName + " " + String(event.cuePointTime);
currentCP.name=event.cuePointName;
currentCP.time=event.cuePointTime;
myVid.cuePointManager.removeCuePoint(currentCP);
cp.text="Cue points remaining: " + String(myVid.cuePointManager.getCuePoints().length);
}
cuePointManagerClass="mx.controls.videoClasses.CuePointManager"
source="http://localhost:8100/MyVideo.flv"
cuePoint="cpHandler(event);" />