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 / April 2006



Tip: Looking for answers? Try searching our database.

LoadVars can't access URL - then freezes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ayman A. R. - 20 Apr 2006 15:05 GMT
Hi,

Guys did that ever happen to any of you before? You use a loadVars object (or
even a loadVariables object) to get some data from a URL , but the server of
that URL is down (or some kind of problem is happening with it),,.. and then
it's as if your flash movie is just looping forever to get it?

Ofcourse, you then get the window saying something like "A script in this
movie is letting your movie stop working. Do you want to abort the script" more
or less.

Is there some kind of timeout function that I can use, in case loadVars can't
access that URL, then it just breaks, and continues normally????? Ofcourse,
giving a bad URL , will just give an onLoad event, with a "false" parameter,
indicating that the URL wasn't loaded successfully.. but I'm talking about when
the URL actually exists, but say the server is startign up, or there is a
problem with, say, the Apache server on there... or something.

I hope my problem is clear.
sneakyimp - 20 Apr 2006 21:07 GMT
in your code that calls the url, right before that line that does the
sendAndLoad() or whatever, set an interval.  then call clearInterval in both
your vars' onLoad handler and also the timeout handling function

look up setInterval() in the actionscript language reference.
 
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.