I am just suggesting that you simplify the conditions by not using a responder function. Instead, just put a string in the AsyncToken, and use a hard coded fault handler.
Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Allman Sent: Thursday, May 10, 2007 4:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: rpc fault handler not called I did not receive my message, so I'm responding to my original post. This is actually in response to Tracy Spratt's message. What is the ACT token? And the responder's fault handler is simply not called. I've debugged it to no avail. I need to see the source to mx.rpc stuff in order to understand what's going on. Unfortunately, that appears to be under wraps. Thanks for your help. Michael On Thu, 10 May 2007, Michael Allman wrote: > Hi, > > Can anyone tell me how to get Flex to call a fault handler associated with > an rpc call? This is the pattern I'm using: > > var token:AsyncToken = operation.send(); > token.addResponder(responder); > > However, my responder's fault method is never called. Instead I get an > error message from flash player with a strack trace that looks like > > mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul tHan <http://www.adobe.com/2006/flex/mx/internal::faultHan> > dler() > at mx.rpc::Responder/fault() > at mx.rpc::AsyncRequest/fault() > at > ::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnection Mess > ageResponder::statusHandler() > at mx.messaging::MessageResponder/status() > > whenever I receive a fault. > > Thanks a bunch! > > Michael >