import mx.controls.Alert;
public function initApp():void {
button1.addEventListener(MouseEvent.CLICK, customEventHandler);
}
public function customEventHandler(event:Event):void {
Alert.show("The mouse was clicked.");
}