Mega Code Archive
Specify listener function in the click attribute of the mx
" src="http://www.rntsoft.com/Code/FlexImages/SpecifylistenerfunctionintheclickattributeofthemxButton.PNG"
import mx.controls.Alert;
private function myEventHandler(event:Event):void {
Alert.show("An event occurred.");
}