Preloader

i have a preloader MC with the script below attached but when it loads it only goes up to 98 and then plays because of the if (percent>99) part. how do i make it play all the way up to 100 then play the loaded information:q: :q:

onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)100)).25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndPlay(2);
}
}