Share Posted July 14, 2010 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? Thanks. Link to comment Share on other sites More sharing options...
Share Posted July 14, 2010 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 More sharing options...
Share Posted July 14, 2010 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 More sharing options...
Author Share Posted July 15, 2010 Great. Thank you !!! That's really a cool loader. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now