I'm making a slideshow...and I am using a moviecliploader to preload all of the images into the flash movie...how can i detect when all of them have loaded so i can start it? i know itll detect individual movie clips with the onLoadComplete event, but i want to know when all of the images have been loaded: here is a sample of my code im using:Code:var imgSrcs:Array=["images/image1.jpg","images/image2.jpg"...]; var loadingImages:MovieClipLoader=new MovieClipLoader(); var listener:Object=new Object(); loadImages.addListner(listener); listener.onLoadComplete=function(target_mc:MovieClip){ //code here }; for (i=0;i<imgSrcs.length;i++){ _root.img_holder.duplicateMovieClip("img_holder"+i, i); loadingImages.loadClip(imgSrcs[i],eval("img_holder"+i)); }




Reply With Quote