var button:Button = new Button(); button.label = "Actionscript 3 Button"; button.addEventListener(ComponentEvent.BUTTON_DOWN, buttonClicked);