Preloader

Hi,

I want to put " xKb loaded to YKb total" in my preloader, how do I do? There is the code:

onClipEvent (load) {
total = _parent.getBytesTotal();
barra._xscale = 0;
_parent.stop();
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
pct = Math.floor((loaded/total)*100);
barra._xscale = pct;
if (pct eq 100) {
_parent.nextframe();
}
pct = pct add “%”;
}

hi,

here is the script:

onClipEvent (enterFrame) {

percent = (_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%";
if (percent == “100%”) {
_root.gotoAndPlay( frameNumber);
}
}

Regards
ajok
[email protected]