MovieClip.prototype.disableAllButtons = function(act) { for (var counter in this) { if (this[counter].__proto__ == Button.prototype) { this[counter].enabled = act; } else if (this[counter].__proto__ == MovieClip.prototype && this[counter]._parent == this) { this[counter].disableAllButtons(act); } } }; ASSetPropFlags(MovieClip.prototype, "disableAllButtons", 7); disableAllButtons(false); // disableAllButtons(true); // myMC.disableAllButtons(false); //