ActionScript Help

Hello

I am relatively new to actionscript programming so this may appear as too simplisitic a question but in any case.

I have a movie with 4 buttons. Each button is a Movie_Clip. The button states are interdependant as in one button can cause changes to the state of another button. I have a simple function called manageState() which sets the state of all buttons after event iteration or transaction.

So the manageState function code looks like this

first_btn.gotoAndStop(1)
last_btn.gotoAndStop(1)
next_btn.gotoAndStop(1)
previous_btn.gotoAndStop(1)

And there is a script associated with each of the button’s frames but no matter what I do - the control does not go the desired state of any other buttons.

I would appreciate any help.

Thanks
dimdim_dev