# Preloader problems

**URL:** <https://forum.kirupa.com/t/preloader-problems/188390>\
**Category:** Uncategorized\
**Created:** [May 7, 2006, 8:24am UTC](https://forum.kirupa.com/t/preloader-problems/188390 "2006-05-07T08:24:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kitaeshi](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@kitaeshi](https://forum.kirupa.com/u/kitaeshi)\
**Post date:** [May 7, 2006, 8:24am UTC](https://forum.kirupa.com/t/preloader-problems/188390/1 "2006-05-07T08:24:30Z")

</div>

Hi all, i am trying to make a preloader whereby the ball will keep bouncing and repeat back to “ballFrame” until it finished loading and continue to play;

below is the script

onEnterFrame = function(){  
getLoad = getBytesLoaded();  
getTotal = getBytesTotal();  
counter = Math.round((getLoad/getTotal)\*100);  
if(counter != 100){  
gotoAndPlay(“ballStart”);  
}else{  
play();  
}  
}

but my ball just hang on the “ballFrame” and i dont know what wrong with the script.

Below is the link to the fla file.  
[www.thouartscene.com/flash/openingTest.fla](http://www.thouartscene.com/flash/openingTest.fla)

Thxs for reading
