[COLOR=black][FONT=Verdana]Hello everyone.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I’ve found a great tutorial using AS 2.0 for a preloader to load external movies.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The tutorial used dynamic text to count the bytes loaded, displaying this in a percentage number (1% - 100%). I want to add a progress bar to the preloader animation. The bar shows up but does not expand as the bytes are loaded. I don’t know where I’m going wrong. Please help.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] [/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I’ve posted the code below:[/FONT][/COLOR]
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target,loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + “%”;
loader.loadBar._with = onLoadProgress * 200;
}
mclL.onLoadInit = function() {
loader._visible = false;
loader.percent.text = “”;
}
mcl.addListener(mclL);
mcl.loadClip(“Introduction.swf”,holder);
overview1.onRelease = function() {
loader._visible = true;
mcl.loadClip(“Overview.swf”,holder);
}
plans2.onRelease = function() {
loader._visible = true;
mcl.loadClip(“Plans.swf”,holder);
}
images3.onRelease = function() {
loader._visible = true;
mcl.loadClip(“newBirth_Images.swf”,holder);
}
donate4.onRelease = function() {
loader._visible = true;
mcl.loadClip(“Donate.swf”,holder);
}
introduction5.onRelease = function() {
loader._visible = true;
mcl.loadClip(“Introduction.swf”,holder);
}
Thanks in advance!
mrDamon