Skip to main content
Inspiring
February 4, 2011
Answered

How to make captions disappear?

  • February 4, 2011
  • 1 reply
  • 1771 views

I have a Flash website that consists of 6 different Scenes. The Home scene and the Videos scene each have a FLV player that I dragged from the library and I called it "vid". So I'm basically using the same player for both scenes. I'm also using the caption component and am assigning the xml via actionscript when  the user clicks on a link, so it reloads the player with the correct video and the correct captions. The problem I'm having is that say they are watching the video on the Home scene with captions. If they click on the Contact Us scene, the video player disappears, but the captions stay on the screen by themselves. Looks really odd. I need a way to turn off the captions (called the component "myCaps") so they disappear both when changing scenes and changing movies. On the Videos scene, if you click a different movie's link, the old captions form the last movie stay on screen and just move up a line and the new movie's captions appear below that one. So, how do I get rid of the captions when I don't want them? For each movie link I have:

myCaps.visible = false;

myCaps.source = "soc119_cc.xml";

myCaps.visible = true;

but that doesn't seem to work. Any ideas?

This topic has been closed for replies.
Correct answer kglad

Here is where you can download my test file. http://www.personal.psu.edu/pzb4/captions.zip

I added a button for each property. One uses showCaptions and one uses visible.


that's unexpected behavior.  fortunately, that showCaptions property works.

1 reply

kglad
Community Expert
Community Expert
February 5, 2011

use different instance names in your different scenes.  you can then use the visible property applied to the two different instances.

pbesongAuthor
Inspiring
February 5, 2011

No luck with that. Despite setting:

myCaps.visible = false;

myCaps2.visible = false;

for both instances in the scenes that don't have video, it still persists to display.

It also still displays under the caption for the Video scene as each movie link is clicked.

pbesongAuthor
Inspiring
February 7, 2011

you're using an FLVPlaybackCaptioning component?


Yes, I am.