Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Working with variables in symbols

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.

Via
0
Via
Asked:
Via
  • 2
1 Solution
 
henrywwCommented:
it is very hard to understand exactly where u want to do and what it looks in ur movie...

can u post some code or a link to the swf/fla so we can understand better where the problem is.

cheers
0
 
ViaAuthor Commented:
Here's a link to what I have so far...

http://128.148.187.234/Flash/Button_Animation.swf
0
 
henrywwCommented:
sorry i missed ur post
no that i have seen it but i still don't quite get it
just make sure ur variable reference is correct put /: in front of the variable and have everything rest in the main timeline ... most probably is the variable or object path is incorrect....

 hope this help
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now