nyc10011
08-29-2007, 03:02 AM
Hello. I am new to this Forum and I am hoping someone could help me out. I am trying to display captions via AS over an FLVPlayback component. I have a dynamic text box (place_txt) on the stage that displays captions at specific cue points using a listener object.
The code I am using:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(cpObj:Object):Void {
place_txt.text = cpObj.info.name;
}
Player.addEventListener("cuePoint", listenerObject);
The code does display the captions. My question:
Is there a simple way to remove a dynamic text field after the last cue point is reached? I am trying to call a second .flv (without captions) through the same FLVPlayback component. I am new to AS and this has really been boggling me. I’m sure it’s probably quite simple to achieve using another event listener or something but I don't know the proper syntax.
I'd sincerely appreciate some feedback.
Thank you.
The code I am using:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(cpObj:Object):Void {
place_txt.text = cpObj.info.name;
}
Player.addEventListener("cuePoint", listenerObject);
The code does display the captions. My question:
Is there a simple way to remove a dynamic text field after the last cue point is reached? I am trying to call a second .flv (without captions) through the same FLVPlayback component. I am new to AS and this has really been boggling me. I’m sure it’s probably quite simple to achieve using another event listener or something but I don't know the proper syntax.
I'd sincerely appreciate some feedback.
Thank you.