# Interdependent button control

**URL:** <https://forum.kirupa.com/t/interdependent-button-control/310471>\
**Category:** flash\
**Created:** [June 10, 2010, 7:47pm UTC](https://forum.kirupa.com/t/interdependent-button-control/310471 "2010-06-10T19:47:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghostir](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@ghostir](https://forum.kirupa.com/u/ghostir)\
**Post date:** [June 10, 2010, 7:47pm UTC](https://forum.kirupa.com/t/interdependent-button-control/310471/1 "2010-06-10T19:47:59Z")

</div>

Another AS3 “newbie” challenge…the design:

1. 

```
  I have three buttons aligned horizontally.

```

2. 

```
  When clicked, a button visually eases up (say 10 pixels). 

```

3. 

```
  Only one of the three buttons may be in the &#8220;up&#8221; position at any given time. If any button is in the &#8220;up&#8221; position when another button is clicked, it will ease back into its original &#8220;down&#8221; position. It may not be directly returned to the "down" position by clicking it while in the "up" position.

```

4. 

```
  The leftmost button is initialized in the &#8220;up&#8221; position.

```

Can this be done simply, using AS3?  
Thanks in advance!
