# Control multiple MCs with function

**URL:** <https://forum.kirupa.com/t/control-multiple-mcs-with-function/300742>\
**Category:** Uncategorized\
**Created:** [November 26, 2009, 12:33pm UTC](https://forum.kirupa.com/t/control-multiple-mcs-with-function/300742 "2009-11-26T12:33:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cantaloupe](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@cantaloupe](https://forum.kirupa.com/u/cantaloupe)\
**Post date:** [November 26, 2009, 12:33pm UTC](https://forum.kirupa.com/t/control-multiple-mcs-with-function/300742/1 "2009-11-26T12:33:07Z")

</div>

I have a keyboard which consists of 26 MCs, named keya, keyb, keyc… and so on.

I want to create a button that will disable all these buttons at once, but I’m not sure how to express it in actionscript. Basically, I need it to say 'on release, key X (where x = all characters from a to z) \_enabled= false;

How would I express this best in actionscript? Thanks.
