for (var i:int = 1; i<BUTTONS_VALUE; i++) { var button:SimpleButton = this.getChildByName("B" + i) as SimpleButton; buttonsA.push(button); button.mouseChildren = false; }