Working with variables in symbols
Posted on 2003-03-10
Here's the situation:
I have a button with an movie clip as the mouse over frame. I created the animation clip in the most general form, so the text roll out reads "Menu Text". I have it set up as dynamic text, variable name: buttonTitle.
Right now I'm having trouble getting the text to change. If i create a global variable in my uppermost container, I can then edit the movie directly to get it to use that variable.
The thing is, I want to be able to work with the button on the uppermost container, and have the buttonTitle cascade down to the movie... i.e. I don't want to have to edit every instance of the movie.
I imagine the variable set will involve something along the lines of: buttonInstance.animationInstance.buttonTitle = "Text", but all the variations I've tried (with the exception of the global variable) aren't working. Any help would be great.