Question : what's the right way of loading multiple images in Loader?

assume you have a bunch of images you want to load from a folder

so you use a for loop and create new Loader instance each time, check loaded. add to displayList.
now you want to swap out the images to next 4 images for argument sake.

You don't have direct access to unload that content if it was created out of current scope.
you can get it, sure but should you delete the loader, and create a new one? just load a different thing into the loader?

Just the theory here - think with me, what's the least CPU /memory intensive and best for GC?

Answer : what's the right way of loading multiple images in Loader?

best for the GC is to reuse existing instances; IMO you should always recycle if possible.

i'm not totally clear on this line:

"You don't have direct access to unload that content if it was created out of current scope."

does that need clarification, or is that more offhand than relevant?

not totally related, but loaders don't close by default, a big failing in my opinion, and one that caused me a ton of problems on one of my first apps after AS3 came out.  i often override load and add a try/catch close:

override public function load(req:URLRequest):void{
  try {
    close();
  } catch(e) {};
  super.load(req);
}

hth
Random Solutions  
 
programming4us programming4us