XML Sometimes Not Loading
Sometimes my swf can't receive data from an xml and load it. I don't know why sometimes it works and sometimes it doesn't, but I'm trying to have the code respond if it doesn't load. I've looked through the forums but couldn't find an answer. I've tried a few things, but couldn't get it to work. Any help would be most appreciated. Thanks.
Actionscript Code:
var globalXMLReq:URLRequest = new URLRequest("http://mysite/global.xml");
var globalXMLLoader:URLLoader = new URLLoader();
var globalXML:XML;
globalXMLLoader.addEventListener(Event.COMPLETE, globalXMLLoaded);
globalXMLLoader.load(globalXMLReq);
function globalXMLLoaded(event:Event):void
{
trace("this is where my xml code is");
}