Check my preloader code please? (very quick)

Hi folks.

Need help before I can post my files, not feeling very confident I’ve done this right, but it seems to work just fine so…

Would somebody check my code please and make sure there isn’t something catastrophically bad in it:

1st frame of main timeline:

this.onEnterFrame = function() {
filesize = content.getBytesTotal();
loaded = content.getBytesLoaded();
preloaderMC._visible = true;
if (loaded != filesize) {
preloaderMC.loadBar._xscale = 100*loaded/filesize;
} else {
preloaderMC._visible = false;
content._visible = true;
}
}

That’s it, that’s all I have. I don’t remove the onEnterFrame if I’m loading say 100 jpgs, right?

Thanks so much!

-Beanpie