addEventListener(MyEvent.TRIGGERED, function(event:MyEvent):void { mx.controls.Alert.show('event handled!'); });