<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.events.CuePointEvent;
import mx.controls.videoClasses.CuePointManager;
private function cpHandler(event:CuePointEvent):void {
cp.text="got to cuepoint: " + event.cuePointName + " " + String(event.cuePointTime);
}
</mx:Script>
<mx:VBox>
<mx:VideoDisplay source="http://localhost:8100/MyVideo.flv"
cuePointManagerClass="mx.controls.videoClasses.CuePointManager"
cuePoint="cpHandler(event);">
<mx:cuePoints>
<mx:Object name="first" time="10" />
<mx:Object name="second" time="20" />
</mx:cuePoints>
</mx:VideoDisplay>
<mx:TextArea id="cp" />
</mx:VBox>
</mx:Application>
|