No decimals on preloader percentage counter

jan 3 2004

No decimals on preloader percentage counter

is there a way to show only integer (no decimals) ;

Cheers.

[COLOR=Sienna]…
totalK = getBytesTotal()/1000;
loadedK = getBytesLoaded()/1000;
remainingK = totalK-loadedK;
percentageK = (loadedK/totalK)*100;
setProperty (“bar”, _xscale, percentageK);
if (loadedK>=totalK && totalK != 0) {
gotoAndPlay (3);
}
…[/COLOR]