import mx.containers.HBox;
private var hBoxes:Array = [];
public function addControlButton():void {
var newHB:HBox = new HBox();
newHB.label = "my label: " + String(hBoxes.length);
hBoxes.push(myAcc.addChild(newHB));
}
public function deleteControlButton():void {
if (hBoxes.length>= 1) {
myAcc.removeChild(hBoxes.pop());
}
}