# How do I get a list of all the buttons on my stage?

**URL:** <https://forum.kirupa.com/t/how-do-i-get-a-list-of-all-the-buttons-on-my-stage/247665>\
**Category:** flash\
**Created:** [December 27, 2007, 11:01pm UTC](https://forum.kirupa.com/t/how-do-i-get-a-list-of-all-the-buttons-on-my-stage/247665 "2007-12-27T23:01:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![enchance](https://avatars.discourse-cdn.com/v4/letter/e/85e7bf/32.png) [@enchance](https://forum.kirupa.com/u/enchance)\
**Post date:** [December 27, 2007, 11:01pm UTC](https://forum.kirupa.com/t/how-do-i-get-a-list-of-all-the-buttons-on-my-stage/247665/1 "2007-12-27T23:01:40Z")

</div>

I have several button symbols on my stage, some of which are enabled while some are not (I enable/disable them using actionscript).

I just need a way to access the “enabled” property of all the buttons on the stage so that I have an array which has the full path of enabled buttons and another for the unenabled buttons. That way, in case I have to lock the screen by disabling all the buttons, I’ll know which ones to enabled once I turn them back on.

Is it possible to write a function which does just that?
