Jump to content


"Preloading" main timeline?

Recommended Posts

All right, so I'm not sure if this is a valid concern or not, but I figure I'd ask anyway.


Is there any way with LoaderMax to track the loading progress of your main timeline?


I've always just written my own stuff that looks at, say, target.loaderInfo.bytesLoaded and stuff...This works all right for loading just the main timeline, but what I end up doing is after loading the main timeline, then creating a LoaderMax instance and loading other stuff from there. If there were a way to use LoaderMax for your main timeline as well as external assets, I'd love to know about it!


It's quite frankly something I've probably overlooked, but I'd appreciate any prods in the right direction! Thanks!


PS: Here's what I've tried, which doesn't work. I know why, I'm just not sure what to change:


// obj.target is a reference to the main timeline
swfLoader=new SWFLoader(obj.target, {name:"main", container:this, x:50, y:50, onInit:onInit, onProgress:onProgress, onComplete:onComplete});

Link to comment
Share on other sites

That's exactly what the SelfLoader is for :)


var queue:LoaderMax = new LoaderMax();
queue.append( new SelfLoader(this) ); //ensures that the root swf's loading progress is integrated into the LoaderMax's
queue.append( ...your other loaders... );

Link to comment
Share on other sites

Gah! I knew it would be in there somewhere! I just didn't look in the right place! Thanks, Jack!!! :D

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.