Preloader problems

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){

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.

Thxs for reading