Preloader question

Dear all,

I looked at one of the tutorials (Preloader that Displays Load Progress) which explains how to make a preloader that displays the progress of movie by BYTES. So the question is, how to make it display by KBYTES??? Hope someone can help me with this little question, thanks a lot.

Madison

couldnt you just multiply the number by 10?

Urr…
I’m just a beginner of Flash, so do you mind to write me the code please? Below is the one i’ve got:

onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
if (bytes_loaded == bytes) {
_root.gotoAndPlay(2);
this.kirupatxt = “movie loaded”;
} else {
_root.gotoAndStop(1);
this.kirupatxt = “loading (” + bytes_loaded + “/” + bytes +")";

}

}

You’ve pretty much got it. To convert to kilobytes just divide “var bytes_loaded” by 1,024. So you could do:
onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
var kilobytes = bytes/1024;
var kilobytes_loaded = bytes_loaded/1024;

then replace the variables in the kirupatxt line with the kilobyte vars. Hope that helps