Galo
04-07-2004, 02:47 AM
Hey guy's and gal's...
the problem is..
I have a menu bar, choices are : Home, Info, Contact, news, Forum
All these choises are mc's and they have the same instance names.
But now i want to do the following.
If i press the choice Home it's alpha is set to 100 from 50 in 10 frames.
But it stays white, to show the user it's activated.
Now what i am trying is this.
Whe i move my mouse over "Info" the alpha of the "Home" button has to be set back to 50.
_root.menu.home._alpha = 50;
_root.menu.home.gotoAndPlay(11);
this is both posible
but now i wan't to change home in this line for a variabele "button"
so i can say, button = "home"
_root.menu. + button + .gotoAndPlay(11);
But this is not working, does anyone knows how i can set the variable inbetween the path ?
kind regards,
Galo
the problem is..
I have a menu bar, choices are : Home, Info, Contact, news, Forum
All these choises are mc's and they have the same instance names.
But now i want to do the following.
If i press the choice Home it's alpha is set to 100 from 50 in 10 frames.
But it stays white, to show the user it's activated.
Now what i am trying is this.
Whe i move my mouse over "Info" the alpha of the "Home" button has to be set back to 50.
_root.menu.home._alpha = 50;
_root.menu.home.gotoAndPlay(11);
this is both posible
but now i wan't to change home in this line for a variabele "button"
so i can say, button = "home"
_root.menu. + button + .gotoAndPlay(11);
But this is not working, does anyone knows how i can set the variable inbetween the path ?
kind regards,
Galo