Jump to content
Search Community

XMLLoader won't fire onComplete

ImagineWebDesign test
Moderator Tag

Recommended Posts

I am having a serious problem with the XMLLoader. For some strange reason the onComplete function won't fire. This has never happend to me before so I'm seriously curious as to why it is happening now.

 

var ldr:XMLLoader;
var loader:LoaderMax;

ldr = new XMLLoader("_assets/xml/gallery.xml", {estimatedBytes:2000, onComplete:parseXML});
ldr.load();

function parseXML(event:LoaderEvent):void
{
    loader = event.target.getLoader("Image Gallery");
    loader.addEventListener(LoaderEvent.CHILD_COMPLETE, onImageComplete, false, 0, true);
    loader.load();
}

 

I also have a preloader attached to the XMLLoader to let me know when it is finished and for some reason when the ldr finishes it just stops and doesn't fire the parseXML function. Can anyone let me know what i'm doing wrong. I honestly don't think i'm doing anything wrong as I've been using Greensock for years now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...