Jump to content
Search Community

XMLLoader integrateProgress

doodledude test
Moderator Tag

Recommended Posts

Hi Jack,

 

is there a way to stop XMLLoader automatically creating loaders from LoaderMax nodes in the XML?

I had thought integrateProgress:false would do this, but not so.

 

if i'm not missing something can i make a feature request to add something like:

autoParse:Boolean=true to XMLLoader

(default true for backward compatible)?

 

many thanks

 

brief example if it helps:

 

XML (part of):





AS:

_configLoader = new XMLLoader(_configURL, {integrateProgress:false, onComplete:configLoadComplete});
_configLoader.load();

function configLoadComplete(e:LoaderEvent):void{
  trace(LoaderMax.getLoader('font.swf'))
  //unexpectedly the SWFloader has been created, though the load was not started, so its just an empty loader.
}

//as the SWFLoader has been created but not loaded
//we can't do something like this later on if/when required:
if( ! LoaderMax.getLoader('font.swf') ){
  //go get it
}else{
  //use the file in LoaderMax
}

Link to comment
Share on other sites

  • 3 weeks later...

actually that makes perfect sense now you point it out, maybe worth adding a small note on this to the XMLLoader documentation.

I think anyone loading XML will automatically look at using XMLLoader without considering if that is the correct class for the job.

thanks again

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...