Don't use lastResult in the handler. Pass in the event: result="defaultResult(event)"
And in the handler do: var xmlResult:XML = XML(event.result); trace(xmlResult>toXMLString()) Alert.show(xmlResult.text()); //with that xml, result is already at "errorCode" as you will see in the trace. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Wednesday, May 28, 2008 6:22 PM To: [email protected] Subject: [flexcoders] return XML error message to Alert Box anyone know how to handle result handler for errors and alert.show them? protected function defaultResult(event:ResultEvent):void { var result:Object = event.result; if(result.errorCode > 0) Alert.show(httpservice_name1.lastResult.errorCode); im returning xml with the middleware message but i would like to display it to the user i get an Alert box but its blank? my returned XML data to show errors is: <errorCode> Dear User an Error has occured please retry again Error #123 </errorCode>

