Easiest way to disable all buttons except the specific?

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: