import mx.controls.Button; public function addButton():void { var myButton:Button = new Button(); myButton.label = "New Button"; myHBox.addChild(myButton); }