# Easiest way to disable all buttons except the specific?

**URL:** <https://forum.kirupa.com/t/easiest-way-to-disable-all-buttons-except-the-specific/322360>\
**Category:** Uncategorized\
**Created:** [May 19, 2011, 3:54am UTC](https://forum.kirupa.com/t/easiest-way-to-disable-all-buttons-except-the-specific/322360 "2011-05-19T03:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chanphillip](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@chanphillip](https://forum.kirupa.com/u/chanphillip)\
**Post date:** [May 19, 2011, 3:54am UTC](https://forum.kirupa.com/t/easiest-way-to-disable-all-buttons-except-the-specific/322360/1 "2011-05-19T03:54:27Z")

</div>

First of all, I would like to say Hello to everyone as this is my first post here! :thumb:

I’m writing a flash game with using some pop-out message boxes, constructed by myself. Users can close it by clicking the button in the box. Meanwhile, the buttons outside the box should all be disabled!

I don’t want to just add a condition check inside all buttons manually if there are alternatives…  
So I have considered using “Button.prototype.onRelease” event, but I don’t know whether it can terminate the original script in each button.

Does anyone have idea? :cry3:
