# Buttons enabled/disabled

**URL:** <https://forum.kirupa.com/t/buttons-enabled-disabled/203245>\
**Category:** flash\
**Created:** [October 9, 2006, 1:48pm UTC](https://forum.kirupa.com/t/buttons-enabled-disabled/203245 "2006-10-09T13:48:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![o111](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/o111/32/2123_2.png) [@o111](https://forum.kirupa.com/u/o111)\
**Post date:** [October 9, 2006, 1:48pm UTC](https://forum.kirupa.com/t/buttons-enabled-disabled/203245/1 "2006-10-09T13:48:14Z")

</div>

Hi k-people!  
Havin’ a nice day? Good.=)  
Here’s the deal:

I have a menu with 6 different buttons.  
Each of those buttons opens an external .swf.

I was trying to make the buttons be disabled when they had been clicked on. And I got that to work using this piece of code:

```auto
on (release) {
this.enabled = false;
}

```

But the thing is… I also want them to be enabled again, when one of the other buttons have been clicked on.[whisper]of course[/whisper]  
So then I tried to add this below the other code:

```auto
on (releaseOutside) {
this.enabled = true;
}

```

But that didn’t work.

So basicly, im asking what code I need. I’ve given each of the buttons instance names like “ **b1** ”, “ **b2** ”, “ **b3** ” and so forth…  
That’s if I need to include the instance names in some script.  
If you could help me out that would be great… if you can’t, I’ll have to kill you:)

-peace:D
