# ActionScript Help

**URL:** https://forum.kirupa.com/t/actionscript-help/209308
**Category:** Uncategorized
**Created:** [December 7, 2006, 5:29pm UTC](https://forum.kirupa.com/t/actionscript-help/209308 "2006-12-07T17:29:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dimdim\_dev](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dimdim\_dev](https://forum.kirupa.com/u/dimdim_dev)
#### Post date: [December 7, 2006, 5:29pm UTC](https://forum.kirupa.com/t/actionscript-help/209308/1 "2006-12-07T17:29:23Z")

</div>

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
