Mega Code Archive
Set cue points for the VideoDisplay control by using the cuePointManager property
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);
}