Smooth Preloader?

Yo doods,
quick question, some sites have nice, smooth loading preloaders, now is that code or the way it is built? I am asking this because my I built it with a simple line shape tween, but the animation is all jerky and sometimes just jumps frames cause the file isnt that big. is there a way to play it out nice and smooth? this is the code I am using:


onClipEvent (load) {
totalBytes =_root.getBytesTotal();
}

onClipEvent (enterFrame) {
loadedBytes =_root.getBytesLoaded();
percentLoaded = Math.round (loadedBytes/totalBytes*100);
gotoAndStop (percentLoaded);
percentLoaded_txt.text = percentLoaded;
if (loadedBytes ==totalBytes) {
_root.gotoAndPlay (“start”);
}
}


:book: