Jump to content
Search Community

nested LoaderMax auto loads when parent is loaded

MostTriumphant test
Moderator Tag

Recommended Posts

I am having an issue where a child LoaderMax queue is loaded when the parent LoaderMax queue is loaded even though it is marked as false. Am I missing something? Here is the XML example:

 

   [item1 I want loaded with mainloadermax]
   [item2 I want loaded with mainloadermax]


	[item3 I want loaded with subloadermax1]
	[item4 I want loaded with subloadermax1]




	[item5 I want loaded with subloadermax2]
	[item6 I want loaded with subloadermax2]



 

Thanks,

Matt

Link to comment
Share on other sites

Hi Matt,

 

I don't know if this is totally accurate but here is my take. the load = false property I believe only is taken into consideration when the XMLLoader is first loaded.

 

if at some point you you tell mainloadermax to load... all of its children will probably load with it regardless if they have load = false.

 

if you want to load mainLoaderMax without loading the subloaders restructuring your xml may do it

 


   [item1 I want loaded with mainloadermax]
   [item2 I want loaded with mainloadermax]




     [item3 I want loaded with subloadermax1]
     [item4 I want loaded with subloadermax1]





     [item5 I want loaded with subloadermax2]
     [item6 I want loaded with subloadermax2]


 

 

you can still load the other subloadermaxes at any time with:

 

LoaderMax.getLoader("subloadermax2").load();

 

does that do what you want?

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