import mx.controls.Image;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flash.utils.describeType;
function faultHandler(event:FaultEvent):void {
Alert.show(event.fault.faultString);
}
function resultHandler(event:ResultEvent):void {
Alert.show(describeType(event.result));
}