Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / October 2005



Tip: Looking for answers? Try searching our database.

gateway connection check

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
daveluff - 04 Oct 2005 10:14 GMT
I have the following code thta makea  connection to a gateway and then moves
onto another frame on the timeline.
But this isn't checking if a connection has been made and sometimes moves onto
the next frame without a connection being established.

Is there a way for me to see when the connection ahs been established?

Thanks,
Dave

function makeGatewayConnection () {
    var gwUrl;
    var gatewayConnection;
    gwUrl="http://aurl.co.uk/flashservices/gateway/";
    NetServices.setDefaultGatewayUrl(gwUrl);
    gatewayConnection=NetServices.createGatewayConnection();
                   _global.productsService =
gatewayConnection.getService("core.bagQuerys");
    gotoAndStop("site");
    }
STHG - 04 Oct 2005 13:01 GMT
I have a similar problem where if the gateway is down, there doesn't seem to be
any way to directly find out.
If the gateway is up, then any errors that occur (application errors or comms
errors) are reported to the status function / status responder. However I can't
trap an event indicating the gateway is down. Can anyone help?
The workaround I have is to use a timeout movie clip. I have a movie clip that
loops for around 10 seconds waiting for a flag to be set. The movie clip is
added to the timeline when the connection attempt is made. The flag is set when
either a response or a status method is called by Remoting. Therefore, if I
don't get any response to either a status or a response method for 10 seconds,
the flag is still clear and the movie clip informs the user that the connection
could not be made. There must be a cleaner way than this????
daveluff - 04 Oct 2005 13:09 GMT
yes there must be a way.

I get the problem where user clicks a function which calls a function within a
cfc.
But sometyimes they can do this before a gateway connection has been
established.

And it appears buggy.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.