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

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?