This content has been marked as final. Show 3 replies
> I find myself at a place where I need to load about
> 5-10 [images] at once. Is there a way to do this
> with the MovieClipLoader class with just one
> MovieClipLoader and just one listener object?
You can invoke that load() method as often as you like. Set up one
listener. Every one of the events carries with it an object with a target
property to let you know which event belongs to which container.
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."
just use a for-loop to start them all loading using the same mcl. what you do with a listener, if anything, depends upon what you need to do after loading is complete and the objects are initialized.
Have you tried it? That would be the absolute quickest way to find out.
I believe you can just do this:
You won't be able to control which order they load in, and your onLoadInit event handler will just need to keep track and know what to do when they are all loaded. The onLoadProgress will not total all the bytesTotal for you, you will need to do that yourself if you want one integrated loadprogress bar.