import mx.collections.ArrayCollection;
import mx.events.CuePointEvent;
import mx.events.VideoEvent;
[Bindable]
private var arrColl:ArrayCollection = new ArrayCollection()
private function doVideoEvent(evt:VideoEvent):void {
doAddItem({type:evt.type});
}
private function doCuePointEvent(evt:CuePointEvent):void {
doAddItem({type:evt.type});
}
private function doProgressEvent(evt:ProgressEvent):void {
doAddItem({type:evt.type});
}
private function doAddItem(obj:Object):void {
arrColl.addItem({type:obj.type, state:videoDisplay.state, playheadTime:videoDisplay.playheadTime, totalTime:videoDisplay.totalTime});
dataGrid.validateNow();
dataGrid.selectedIndex = arrColl.length;
dataGrid.scrollToIndex(arrColl.length);
}
autoPlay="false"
autoRewind="false"
ready="doVideoEvent(event);"
rewind="doVideoEvent(event);"
playheadUpdate="doVideoEvent(event);"
close="doVideoEvent(event);"
complete="doVideoEvent(event);"
progress="doProgressEvent(event);" />