469,357 Members | 1,831 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,357 developers. It's quick & easy.

removing dynamic text field before second .flv streams

I am trying to figure out how to remove a dynamic text field from the stage that plays captions over an .flv from an XML file. I would like to find out how to remove the field before a second .flv video, containing embedded cuepoints streams through same component. The text field is also displaying the embedded cuepoints in the second .flv vids. Is it possible to remove a text field, either using removeListener or removeASCuePoint?

I'd really appreciate some feedback, as this has been boggling my mind for some time. Thank you.

Here is the code I am using before invoking second .flv:

captionsXML.load("captions.xml");

Vid.addEventListener("cuePoint", onCuePoint);

var cuePt:Object = new Object();
cuePt.time = 8.41;
cuePt.name = "";
cuePt.type = "actionscript";
Vid.addASCuePoint(cuePt);


function onCuePoint(evntObj:Object):Void {
txtCaption.text = evntObj.info.name;

if(evntObj.info.time == "8.41"){
txtCaption.close();
}
}
Vid.addEventListener("cuePoint", onCuePoint);
Nov 3 '07 #1
1 4282
rsdev
149 100+
I am trying to figure out how to remove a dynamic text field from the stage that plays captions over an .flv from an XML file. I would like to find out how to remove the field before a second .flv video, containing embedded cuepoints streams through same component. The text field is also displaying the embedded cuepoints in the second .flv vids. Is it possible to remove a text field, either using removeListener or removeASCuePoint?

I'd really appreciate some feedback, as this has been boggling my mind for some time. Thank you.

Here is the code I am using before invoking second .flv:

captionsXML.load("captions.xml");

Vid.addEventListener("cuePoint", onCuePoint);

var cuePt:Object = new Object();
cuePt.time = 8.41;
cuePt.name = "";
cuePt.type = "actionscript";
Vid.addASCuePoint(cuePt);


function onCuePoint(evntObj:Object):Void {
txtCaption.text = evntObj.info.name;

if(evntObj.info.time == "8.41"){
txtCaption.close();
}
}
Vid.addEventListener("cuePoint", onCuePoint);
Hi,

Use status event listener to check when the flv has finished and then set the dynamic text field = "".

Look in Flash Help file for FLVPlayback component and then check out the examples for statuschanged etc.

Hope this helps.
Nov 4 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Nathan Bloomfield | last post: by
3 posts views Thread by Peter Bailey | last post: by
reply views Thread by MattB | last post: by
5 posts views Thread by bwv539 | last post: by
4 posts views Thread by Philip_collins | last post: by
3 posts views Thread by tokcy | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.