Preloader question

Hey!

I am creating a preloader, but I want the % to load backwards…

Right now, it is loading from 0% > 100%. I want it to load from 100% > 0%

My copy says “Different is ____ away”. The “___” part will be the number and % sign, going from 100, all the way down to 0. So,

“Different is 100% away” then “Different is 65% away” (as it is loading)… all the way to “Different is 0% away”

My preloader code is

theTargetLevel = _root.target_mc;
loadingDisplayText = textDisplay;
if (theTargetLevel.getBytesTotal() != undefined) {
Loaded = Math.round(theTargetLevel.getBytesLoaded()/1024);
Total = Math.round(theTargetLevel.getBytesTotal()/1024);
percent = Math.round((Loaded/Total)*100);
//percentTotal = Math.round((((100)/_root.TotalL)*Loaded)+_root.currentTotalBarScale)
if (isNaN(percent)==false && percent != undefined && percent != “”) {
if (percent>=percentRequired) {
_parent.currentTotalBarScale = totalBar_mc._yscale;
_parent.play();
} else {
_root.loading_mc._alpha = 100;
loadingBar_mc._yscale = percent;
percentDisplay = percent+"%";
if (percentTotal>=100){
percentTotal = 100;
}
totalBar_mc._yscale = percentTotal;
totalDisplay = percentTotal+"%";
}
} else {
//loadingDisplayText = “ERROR var percent = NaN or undefined or ‘’”;
}
gotoAndPlay(“loop”);
}

totalBar_mc._yscale = percentTotal;
var diff = 100 - percentTotal;
totalDisplay = diff+"%";

[QUOTE=creatify;1985359]totalBar_mc._yscale = percentTotal;
var diff = 100 - percentTotal;
totalDisplay = diff+"%";[/QUOTE]

Awesome! I’ll try that out. Thanks so much. :slight_smile: