# Preloader problem....AGAIN! sigh

**URL:** <https://forum.kirupa.com/t/preloader-problem-again-sigh/225463>\
**Category:** Uncategorized\
**Created:** [May 12, 2007, 1:14am UTC](https://forum.kirupa.com/t/preloader-problem-again-sigh/225463 "2007-05-12T01:14:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)\
**Post date:** [May 12, 2007, 1:14am UTC](https://forum.kirupa.com/t/preloader-problem-again-sigh/225463/1 "2007-05-12T01:14:09Z")

</div>

okay this is the code im using from one of the tutorials i found here somewhere…

" onClipEvent (load) {  
total = \_root.getBytesTotal();  
}  
onClipEvent (enterFrame) {  
loaded = \_root.getBytesLoaded();  
percent = int(loaded/total\*100);  
text = “loading… “+percent+”%”;  
gotoAndStop(percent);  
if (loaded == total) {  
\_root.gotoAndPlay(2);  
}  
} "

now the problem is that, it plays and all but the movie starts to play b4 the whole thing is loaded. like the way i want it is that it all loads in first since the site isnt that heavy, and then play from frame 2…the way its working is that, itll load like 20-25% then play the first portion of the timeline animation, then load the rest and then finish out the animated sequence…im lost…

any ideas?
