Look up VideoDisplay's metadata cuePoints and compare to current cue point object
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.utils.ObjectUtil;
import mx.events.CuePointEvent;
private function vidDisp_cuePoint(evt:CuePointEvent):void {
var cuePointObj:Object = null;
var obj:Object;
var cuePointArr:Array = vidDisp.metadata.cuePoints;
var idx:uint;
var len:int = cuePointArr.length;
for (idx = 0; idx < len; idx++) {
if (cuePointArr[idx].name == evt.cuePointName) {
cuePointObj = cuePointArr[idx];
}
}
trace(evt.cuePointName, ObjectUtil.toString(cuePointObj));
}
</mx:Script>
<mx:VideoDisplay id="vidDisp"
source="http://s.com/s.flv"
cuePoint="vidDisp_cuePoint(event);" />
</mx:Application>
Related examples in the same category