import mx.controls.Alert; private function myEventHandler(e:Event):void { Alert.show("An event of type " + e.type + " occurred."); }