# Preloader problem

**URL:** <https://forum.kirupa.com/t/preloader-problem/312989>\
**Category:** Uncategorized\
**Created:** [August 17, 2010, 6:51pm UTC](https://forum.kirupa.com/t/preloader-problem/312989 "2010-08-17T18:51:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![n2dzyne](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@n2dzyne](https://forum.kirupa.com/u/n2dzyne)\
**Post date:** [August 17, 2010, 6:51pm UTC](https://forum.kirupa.com/t/preloader-problem/312989/1 "2010-08-17T18:51:51Z")

</div>

This code was not written by me and I’m having a hard time figuring out how to fix it. I am getting a syntax error in the preloader.

onClipEvent (load)  
{  
Total = Math.round(\_root.getBytesTotal() / 1000);  
}  
onClipEvent (enterFrame)  
{  
Loaded = Math.round(\_root.getBytesLoaded() / 1000);  
Remaining = Total - Loaded;  
Percent = Math.floor(Number(Loaded) / Number(Total) \* 100);  
gotoAndStop(Percent);  
\_parent.percentloaded = "LOADING " + Percent add “%”;  
if (Percent == 100)  
{  
\_parent.\_parent.play();  
} // end if  
}

I changed  
\_parent.percentloaded = "LOADING " + Percent add “%”;  
to this  
\_parent.percentloaded = "LOADING " + Percent + “%”;

This took away the syntax error but now the parent swf is not loading. Any suggestions?

Thanks!
