Flash: loadVars() need timeout function.
Posted on 2006-06-20
The following is to check if a domain is up or not.
I need a timeout of say 5 seconds. I am checking a lot of domains at once and don't want to have to wait if a domain is responding slow, also I don't even need to load any variables since I wont use them.
Is there a way to undefine the variables that are loaded or just skip the loading of them alltogether, just see if the domain is alive and quit/timeout?
checkDomainUp = function (stuff)
var myLoadVar = new LoadVars();
myLoadVar.onData = function(dat)
if (dat != undefined)
Also, does anyone know if you can thread loadvars... have more than one of them running at the same time??
Thank you very much.