using cue points to change a text box
Ok I asked a simlar question before but I am still having trouble getting it to work.
I have a video with 11 Cue points and at each cuepint I want the Typebox to change it text at each cue point.
When the video is playing I want a the textbox to change the text when cue point 1 is reached. This is the code I am using. But every always goes straight to the whatever the last functions text and skips all the other before it. Its bassically this code repeated with difffernt function name and string.
import fl.video.MetadataEvent;
flvplayer.addEventListener(MetadataEvent.CUE_POINT,section2Cue);
function section2Cue(event:MetadataEvent):void{
for(var String = "section2" in event.info){
typebox.text = "Hello"; }
}
So basically I want to tell flash, when CuePoint1 is reached text = "hello world" and when CuePoint2 is reached I want the text ="Hello Again". I don't know what I am doing wrong or what is the best way to tell flash how to do this