Jump to content


Disposing LoaderMax children

Moderator Tag

Recommended Posts

Hi, great job for this loader.


I was wondering what is the best method to dispose all loaders :

If i dispose a LoaderMax does it dispose LoaderMax children too or do i have to loop in the LoaderMax.getChildren and dispose all of them manually?



Link to comment
Share on other sites

Hey, i'm not really competent, but I stumbled on this while searching the docs:


empty(disposeChildren:Boolean = true, unloadAllContent:Boolean = false):void

Empties the LoaderMax of all its loaders and optionally disposes/unloads them.


Maybe that helps.

Link to comment
Share on other sites

Yep, when you dispose() a LoaderMax, it automatically calls empty() and disposes of its children. If you do NOT want the children to be disposed, then make sure you empty() first and set the "disposeChildren" parameter to false, like loader.empty(false). But again, the default behavior is indeed to dispose the children as well.

Link to comment
Share on other sites

Great. Thank you !!!


That's really a cool loader.

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.