This is what I do:

             myService.requestTimeout = 30;
             myService.addEventListener(FaultEvent.FAULT, faultHandler);

             private function faultHandler(fault:FaultEvent):void
             {
                 switch(fault.fault.faultCode.toString())
                 {
                     case "Client.Error.RequestTimeout":
                          Alert.show("The server is not responding.
Please check that you are connected and the server is running.", "Server
Timeout");
                    break;
                     default:
                         Alert.show(fault.fault.faultString,
fault.fault.faultCode.toString());
                     break;
                 }
             }



--- In [email protected], Rico Leuthold <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm searching for a good way to handle request timouts of remote
> object calls. There is no event which handles timeouts, but you can
> set a requestTimout for a RemoteObject - so what is that good for ?
>
> Every idea is welcome.
>
> Thank's
>
> _rico
>

Reply via email to