# Set all buttons inside a mc to enable = false?

**URL:** <https://forum.kirupa.com/t/set-all-buttons-inside-a-mc-to-enable-false/199708>\
**Category:** flash\
**Created:** [September 5, 2006, 12:42pm UTC](https://forum.kirupa.com/t/set-all-buttons-inside-a-mc-to-enable-false/199708 "2006-09-05T12:42:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Bolero](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@Tony\_Bolero](https://forum.kirupa.com/u/Tony_Bolero)\
**Post date:** [September 5, 2006, 12:42pm UTC](https://forum.kirupa.com/t/set-all-buttons-inside-a-mc-to-enable-false/199708/1 "2006-09-05T12:42:02Z")

</div>

Hi!

I know that if I want to disable a button I write:

myBtn.enabled = false;

But if I have a couple of buttons inside a mc and I want to disable all of them without targeting each and everyone of them. How do I code that?

Best regards  
Tony Bolero
