Thank you, tg.
I have never thought about using loop. However, I'm wondering if you could think of some codes that are more flexible. For instance, I have a button A that is attached the action: mc1.gotoAndPlay(1) and mc2-5 gotoAndPlay(2). Also at the same time, I have another button B that is assigned: mc2.gotoAndPlay(1) and mc1, 3-5 gotoAndPlay(2)
How can you make those different MCs do the same action with less code?
Yes, tg, I have buttons c,d,e, etc..
In fact, I have 11 buttons. What I'm trying to do is that a Movie Clip (button) will keep its active state when the user click on it but it will go to back to its original state when the user clicks on another Movie Clip(button). I used very stupid way to make it work but thought there should be a better way to write the code.
well the easiest way would be to reset all buttons back to default setting (inactive) then set the one clicked to active.
so when a button is clicked. all are set to inactive then set the selected button to active.
__________________
tg
---
what the hell was i thinking?