script
<mx:Script>
<![CDATA[
import mx.events.CuePointEvent;
import mx.controls.videoClasses.CuePointManager;
[Bindable] public var movie:String = "../assets/clips/tube/china/calligraphy.flv";
[Bindable] private var state:uint = 0;
[Bindable] private var cuepoints:Array = [
{name:'cue 0', time:0.00},
{name:'cue 1', time:2.60},
{name:'cue 2', time:3.75},
{name:'cue 3', time:5.75}
];
[Bindable] private var info:String = "";
private function click(video:Object):void {
if (state < 4) info = cuepoints[state].name;
if (state == 0) { story.text = "..."; }
else if (state == 1) { story.text = "... once upon a time"; }
else if (state == 2) { story.text = "there was a ..."; }
else if (state == 3) { story.text = ""; }
else { story.text = ""; info=""; state = 0; }
state += 1;
}
]]>
</mx:Script>