Thank you Dmitri. I just looked into XMLSocket. Looks like that would
work great to test connection to host.

In my scenario, the site, spacecityaug.com, would load just fine
(host/web server ok), but if the remoteObject connection fails and/or
http://www.spacecityaug.com/Flex2gateway connection fails, that's a
different ball game.  You get the spinning clock until the
remoteObject fault event fires. (could be a long time if ColdFusion or
SQL Server is bogged down for any reason).

I may not have asked the right question. It might be more specific to
remoteObject failure at the instance the 
http://www.spacecityaug.com/Flex2gateway connection is attempted, but
before ColdFusion has a chance to return the data. 

maybe setting the RO.requestTimeout to a low number is what I need.

I'll try this timeout.

But, it was very cool to learn about XMLSocket.

Thanks,
Don






--- In [email protected], "Dmitri Girski" <[EMAIL PROTECTED]> wrote:
>
> Hi Don,
> 
> Probably you can use XMLSocket. You connect it to your server and when
> connection breaks for any reason, XMSocket dispatches IOError event.
> 
> Cheers,
> Dmitri.
> 
> 
> --- In [email protected], "Don Kerr" <fusionpage@> wrote:
> >
> > Can anyone point me to examples of how to alert the user if/when
> > connection to server is lost in a Flex app? So that they don't watch
> > the spinning clock and wait for the fault...then send in hundreds of
> > support requests:)?
> > 
> > If the server is down or ColdFusion Flex Gateway is hung, I want to
> > alert the user in a friendly way.
> > 
> > I have the same issue with my AIR apps. Additionally with AIR, in
> > cases where the user is outside the NASA firewall and can't connect to
> > flex gateway.
> > 
> > Maybe there is some Actionscript I could use in both my Flex and Air
> apps?
> > 
> > Or do I simply have to shorten the timeout period on the RemoteObject
> > and use a event:faultEvent to popup up a custom alert?
> > 
> > Any suggestions?
> > 
> > Thanks,
> > Don
> >
>


Reply via email to