var myButtons:Array = new Array();for(var x:Number = 0; x < 8; x++){ var newButton:MainBtns = new MainBtns(); myButtons.push(newButton); addChild(newButton); }}// access buttonsmyButtons[0].x = 100;