" src="http://www.rntsoft.com/Code/FlexImages/SpecifylistenerfunctionintheclickattributeofthemxButton.PNG"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
import mx.controls.Alert;
private function myEventHandler(event:Event):void {
Alert.show("An event occurred.");
}