Hey, do one thing.
don't create multiple events like flault1(event), falult2(event). make only one function falut(event) and assign it to every request. furthure to that, if you are using a lot of remote object service, define only one service in a class and use the instance of that class to send request. as far as cryptic flex message is concerned, do one thing, Instaed of using faultevent.message, use faultevent.fault.string, that will give you more user friendly message. Thanks, Shaleen Jain http://shaleenjain.blogspot.com On Jan 10, 12:04 am, flexwiz <[email protected]> wrote: > I have a large bunch of RemoteObject calls in the code; similar to > this; > > <mx:RemoteObject id="RO" showBusyCursor="true" destination="Dest1" > > <mx:method name="meth1" result="result1(event)" fault="fault1 > (event)"></mx:method> > <mx:method name="meth2" result="result2(event)" fault="fault2 > (event)"></mx:method> > </mx:RemoteObject> > > Methods themselves have fault event handlers associated; but not the > remote objects; > > Is there any way; where I can add a Global RemoteObject Fault Handler > in the applicationComplete or init event of the application? > > I understand that I can add faulthandler to RemoteObject itself; but > there are large number of RemoteObjects in the code; > > I am trying to find a way to suppress the SendFailed error that > appears when a back-end server goes down; while the app is still > loaded in the browser; When a flex app is still open in a client > browser; and if the back-end application goes down for a while; a > SendFailed Error appears on screen; > > I assume; if a global fault handler is added; I can show a custom pop- > up rather than the cryptic Flex message to the end-user. > > faultCode = "Client.Error.MessageSend" > faultDetail = "Channel.Connect.Failed error > NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost: > 8080/WebContent/messagebroker/amf'" > faultString = "Send failed" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

