Mega Code Archive
Pass Event object to submitForm() handler function and specifies it as type MouseEvent
import mx.controls.Alert;
private function myEventHandler(event:MouseEvent):void {
Alert.show("An event of type '" + event.type + "' occurred.");
}