I have this code in my movie, in the first frame, and I want to know how can I preload other movies (in secuense: music_1.swf,music_2.swf,3,4,5 …) making use of the same code and a button.
[COLOR=DarkRed]*For example, press a button, and load movie 2, press movie 3 etc… using this preloader[/COLOR]
Thank you for any help
Lobo
mcLoader = new MovieClipLoader();
loadListener = new Object();
mcLoader.addListener(loadListener);
mcLoader.loadClip("music_1.swf", loader_mc);
loadListener.onLoadStart = function() {
loader_mc.stop();
};
loadListener.onLoadProgress = function(loadTarget, loadedBytes, totalBytes) {
preloaded = Math.floor(loadedBytes/totalBytes*100);
loaderText_txt.text = preloaded+"% loaded into "+loadTarget;
bar_mc._xscale = preloaded;
};
loadListener.onLoadComplete = function() {
loaderText_txt._visible = false;
bar_mc._visible = false;
loader_mc.play();
};