AS3: dynamically load images into MC
Hi,
Currently I have 20 separate png images in the library each made into a MC. So there are 20 MC's, each one holding a specific image for which it is the correct size.
What I would like to set up instead, and need some help with, is dynamically loading a different set of 20 images (that I can add to the library), each to one of the MC's.
I think that first I would need to create 20 empty MC's to hold one or another of these sets of 20 png's each.
What I need help with: how to script this so that 2 buttons could be used: one button would load the first set, each image into a specific empty MC which is sized to hold it (20 MC's total), and a second button to load the second set of 20 images, one each to a specific empty MC which also would be its correct size. I checked out the loader class but this seems to be for external URL's not images already in the library.
Any help, suggestions appreciated.
saratogacoach
