I normally use a timeout to check this...
environmentservice = new RemoteObject("myDestination");
environmentservice.requestTimeout = 30;
environmentservice.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], "nagaofthesea" <[EMAIL PROTECTED]>
wrote:
>
> Howdy-
>
> Does anyone know of a way (AS3 or mx:CustomComponent) that tests if
> the user's internet connection is live?
>
> I have an application with error processing that needs to know if an
> RPC failed because the user's connection is down...
>
> Thanks!
> Naga
>