Jump to content
Search Community

a second preloader after onComplete of the first

bonassus test
Moderator Tag

Recommended Posts

I want to load a few files with a loaderMax object and with a onProgress parameter that controls a perloader bar. when it is finished loading I want another loaderMax object to start loading more files with its own preloader.

Should i just put the loader.load(); for the second loaderMax in the onComplete handler for the first?

Is there a better way to have a second preloader for files loaded after the onComplete has been called for the first loader?

 

I hope that makes sense.

 

Thanks.

Link to comment
Share on other sites

Sure, that could work just fine. Another option is to nest both LoaderMax instances in a parent LoaderMax (you can nest as deeply as you want - kinda cool once you see how it works). Just make sure you set the maxConnections on the parent LoaderMax to 1 so that it doesn't load both of them concurrently.

 

Make sense?

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