Here’s my situation. I’m creating an image loader with a specific effects that requires layering multiple masks over the same movieclip. in the timeline it looks like this:
What I want to do is add an instance of the loaded image into each of these masked movieclips. I’m trying this:
create a new instance of the loader and store it in an Array
for (var j=0; j<allThumbs.length(); j++) {
imgLoader = new Loader();
img_arr.push(imgLoader);
}
Then add each stored instance to the masked movieclip instances
function onClickImg(event:MouseEvent) {
curIndex=tNs_mc.indexOf(event.currentTarget);
imgView.gal2_1.addChild(img_mc[curIndex][0]);
imgView.gal2_2.addChild(img_mc[curIndex][1]);
imgView.gal2_3.addChild(img_mc[curIndex][2]);
imgView.gal2_4.addChild(img_mc[curIndex][3]);
imgView.gotoAndPlay(2);
The result is that only the last Loader instance is shown… so in this case I only see gal2_4
The only way I’ve been able to get this to work is to create an entirely new Loader object for each movieclip instance. Doing it this way loads the same image 4 times… that’s not acceptable.
Anyone know how I can store the image that is loaded and reuse it in the different movieclip instances?
Thanks in advance