RE: [flexcoders] Testing Internet Connection in Flex

2008-08-07 Thread Gregor Kiddie
If you are using AIR you can test to see if the connection is open.

http://www.adobe.com/devnet/air/flex/articles/flickr_floater_06.html
Explains it pretty well.

If you are purely using Flex in the Flash Player, you can probably glean
the information from the Fault object the Remote Object generates when
the RPC operation fails.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nagaofthesea
Sent: 06 August 2008 21:07
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Testing Internet Connection in Flex

 

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!





Re: [flexcoders] Testing Internet Connection in Flex

2008-08-07 Thread Brian Deitte
If it's not AIR, just add event listeners for this, usually an
IOErrorEvent.  If you can listen for SecurityErrorEvent, make sure to
do this as well, since depending on what you're loading, this could
show up as the event for a connection being down.  -Brian

On Wed, Aug 6, 2008 at 4:06 PM, 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

 


[flexcoders] Testing Internet Connection in Flex

2008-08-06 Thread nagaofthesea
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