Nav bar question

OK guys. Question. I have created a nav bar with 6 buttons running horizontally across the bottom. I built them so that when I click on them other buttons rise from them and then the stage fills with whatever elements are associated with the button pushed. What I am wanting to do is:

when I click on another button I want to reverse the actions on the stage (like create an exit screen when another button is selected) and have the buttons of the “active” button retreat back down before the action of the most recent button clicked on does it’s thing.

So:

If button (1) is active with 4 child buttons above it and I click on button (5) I would like the four child buttons above the parent button (1) to retreat back down

Then the 4 child buttons of parent button (5) will rise up.

But if I click on button (5) how will it know that button (1) is active and not 2 or 3 or 4… and so forth and so on. There must be an easy way to do this because I see it quite often, I just am not advanced enough yet to know.

I’m not much more advanced in this man but im supposing u could set variables to make the present button active and then when u want to retreat the child buttons from say ur button(1) u could simply code it so that instead of the frames running forward they would go back a step. and when it reaches the first frame jump to the first frame for say button(4) if that is what u clicked and load its child buttons. u can try it out and see.
:asian:

hey geko, thanks for the help. i am still not sure what I am supposed to do. Maybe someone could add some additional direction.

thanks

digs