# Play btn out label when another btn clicked?

**URL:** <https://forum.kirupa.com/t/play-btn-out-label-when-another-btn-clicked/187850>\
**Category:** flash\
**Created:** [May 2, 2006, 7:16pm UTC](https://forum.kirupa.com/t/play-btn-out-label-when-another-btn-clicked/187850 "2006-05-02T19:16:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://forum.kirupa.com/u/Red)\
**Post date:** [May 2, 2006, 7:16pm UTC](https://forum.kirupa.com/t/play-btn-out-label-when-another-btn-clicked/187850/1 "2006-05-02T19:16:31Z")

</div>

Well here it goes…

Pretend a button is selected - when that button is selected it goes to the active frame which shows that the button is selected. When you click another button it currently resets itself - BUT - I want it to go to and play frame “mouse\_out” and than reset itself. Below is the code I am currently working wtih:

```auto

button1.onRelease=function(){
    resetall();
 this.gotoAndStop("active");
    this.enabled=false;
 gotoAndPlay("home");
}
function resetall(){
    for(var i=1; i<=4; i++){
        eval("mybutton"+i).enabled=true;
    }
}
button1.onRollOver=function(){
 this.gotoAndPlay("mouse_over");
}
button1.onRollOut=function(){
 this.gotoAndPlay("mouse_out");
}
 

```

I would appreciate any help - oh and Im pretty much a beginner when it comes to Actionscript!!

Thanks again,  
RED
