# Preloader

**URL:** <https://forum.kirupa.com/t/preloader/44823>\
**Category:** Uncategorized\
**Created:** [March 8, 2004, 7:18am UTC](https://forum.kirupa.com/t/preloader/44823 "2004-03-08T07:18:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hedake](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@hedake](https://forum.kirupa.com/u/hedake)\
**Post date:** [March 8, 2004, 7:18am UTC](https://forum.kirupa.com/t/preloader/44823/1 "2004-03-08T07:18:28Z")

</div>

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);  
}  
}
