hi everyone
i have three thumbnails on the stage and onclick the big pic will load in the big grey area.
i have percentage preloader before the big pic loads.
now i want to have the same percentage preloader for thumbs. means i have made three movieclips as thumbs and m loading the small pics as thumbs inside the movieclips.
i know how to create preloader and load complete website but that script doesnt work with this concept.
i want to know how can i create individual percentage preloader for the small thumbs that shows how much each small pic has loaded.
at present i have just inserted the text showing loading but i need a percentage preloader.
the actionscript i m using is below :
pText._visible = false;
my_mc = new MovieClipLoader();
preload = new Object();
my_mc.addListener(preload);
preload.onLoadStart = function(targetMC) {
pText._visible = true;
};
preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
pText.text = "% "+Math.round((lBytes/tBytes)*100);
};
preload.onLoadComplete = function(targetMC) {
pText._visible = false;
};
thumb1.holdr.loadMovie(“pic1_thumb.jpg”);
thumb2.holdr.loadMovie(“pic2_thumb.jpg”);
thumb3.holdr.loadMovie(“pic3_thumb.jpg”);
thumb1.btn.onPress = function() {
my_mc.loadClip(“pic1.jpg”, “container.sub”);
};
thumb2.btn.onPress = function() {
my_mc.loadClip(“pic2.jpg”, “container.sub”);
};
thumb3.btn.onPress = function() {
my_mc.loadClip(“pic3.jpg”, “container.sub”);
};