Skip to main content
Known Participant
January 23, 2008
Question

[Need Help with Dynamic Text as Caption]

  • January 23, 2008
  • 6 replies
  • 447 views
Hi All,

I have a question regarding caption in flash. I have a demo that has no audio, but text only. I need to make that text as caption. In other words, when I click on the caption button, the text should pop up and when unclicked, it textbox should hide. How do I go about this?

Thanks
This topic has been closed for replies.

6 replies

Known Participant
January 28, 2008
Hi Rob,

Thanks for your help! Really appreciate it


robdillon
Participating Frequently
January 25, 2008
How this is done will depend on how your movie is constructed. Here's a simple solution:

http://www.ddg-designs.com/downloads/captions.zip
Known Participant
January 25, 2008
Hi Rob,

You are right, I do have a bunch of these caption textfields in different frames and I want to be able to turn it off and on. If you could provide me with a sample code I would really appreciate it. It will be easier for me to understand.

Thanks


robdillon
Participating Frequently
January 24, 2008
I'm guessing that you have a bunch of these caption textfields in different frames, and you want all of them to on or off, depending on the state of the button.

If that's the case then yes, you can use a variable to hold the current value of that caption button. Then have each of these caption textfields look at the variable's value when you get to the frame where they show. Exactly how you implement this will depend on how your movie is constructed.
Known Participant
January 24, 2008
Hi Rob,

The problem that I am having is that every time to go to the next text, I have to click the button to do so. Is there a way to get around that so that on one click of the caption button, the text plays.

Thanks



robdillon
Participating Frequently
January 24, 2008
Create the textfield as needed. Make it a movieClip. Position it on the stage as needed. Name the clip instance. Set the clip's alpha to 0. Change the alpha of the clip using the caption button.