Jump to content
Search Community

"Preloading" main timeline?

BGoulette test
Moderator Tag

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});
swfLoader.load();

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