Hello all
After asking on here a few times and having no results or advice. Also upon searching this forum everyone else who has asked of similer things has also had the same none reply. I have managed to get a working basic model.
SO HERE IT IS ENJOY
[SIZE=“4”](note spent three days pulling my hair out on this!!)[/SIZE]
// default number to start on
var count:Number = 0;
// how many images you want to load
var countAmount:Number = 3;
//
var thumbnailLoader_mc:MovieClipLoader = new MovieClipLoader();
var preload:Object = new Object();
thumbnailLoader_mc.addListener(preload);
//
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
bar_mc._visible = true;
pText._visible = true;
};
//
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
// place your preloader stuff here
bar_mc._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
//
preload.onLoadComplete = function(targetMC) {
bar_mc._visible = false;
pText._visible = false;
trace(targetMC+" finished");
if(count != countAmount){
count++;
loadThumbs();
trace("not ready to quit so why am i?");
}
};
//
function loadThumbs() {
// just to finish the loading
if(count == countAmount){
trace("list completed");
return true;
}
trace("loading function for the "+count+" time");
var name:String = "item"+count+"_mc";
thumbHolder_mc.createEmptyMovieClip("item"+count+"_mc", count);;
thumbnailLoader_mc.loadClip("image"+count+".jpg", thumbHolder_mc;
}
Now thats just the bare bones of doing this sort of loader. But hopefully it will give someone the right idea.
Also please not that this is based on the preloader tutorial on this site as well.
Any questions please ask