I have the following code, which puts a thumbnail pic inside a movieclip. If I want each thumbnail pic to fade in as it completes loading, how would I go about doing that? Any reference to “this” inside the “thumbLoaded” function references the actual content loader info, not the loader itself it seems. Any reference to tLoadArray[z] just fades in the last pic in the array.
var thumbLoader:Loader = new Loader;
var thumbPic:URLRequest = new URLRequest(myXML.image[z].@thumb);
thumbLoader.load(thumbPic);
thumbs.addChild(thumbLoader);
thumbLoader.name = "tLoad" + z;
tLoadArray[z] = thumbs.getChildByName("tLoad" + z);
tLoadArray[z].x = -33.63;
tLoadArray[z].y = -44.6;
tLoadArray[z].alpha = 0;
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
function thumbLoaded(myEvent:Event):void {
//FADE IN LOADER HERE
};
Thanks in advance