Hi
I want to load some xml data from the server running on mymachine (localhost), from a flash swf embedded on an external website. The localhost has crossdomain.xml as well, but the problem is its not always running. So in case its not running I want to get some error code, so that i can ping again after some time.
I use this code..
function loadMyXML() {
getDeviceId_xml = new XML();
getDeviceId_xml.ignoreWhite = true;
getDeviceId_xml.load("http://localhost:8081/myXML.xml");
getDeviceId_xml.onLoad = function (success:Boolean) {
// some code
}
}
callAfterLoadDev = setInterval(loadMyXML,4000);
it works fine when i run it locally, but when i embed it in external website, it hangs. Is there a way I could set timeout. Basically i think its looking for crossdomain xml which it won't get as server is not running.
Is there any other way, where I could just ping a server and know if its running or not ?
Please help
--
Nagota