A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: XML Sometimes Not Loading

Threaded View

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    343

    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");
    }
    Last edited by gamist; 02-24-2010 at 01:46 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center