Preloader problem

hi, not sure if this is the best way to have a preloader. I put this on frame 1 and on frame 2 i have a gotoAndPlay(1);

is it best to have the thi.getBytesLoaded() so that way i can use this for any new movie?

thanks :slight_smile:

bytes_loaded = Math.round(this.getBytesLoaded());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent100;
percentage_txt.text = Math.round(getPercent
100)+"%";
if (bytes_loaded >= bytes_total)
{
trace(“loaded”);
nextScene();
}