# Loader doesnt finish loading?

**URL:** <https://forum.kirupa.com/t/loader-doesnt-finish-loading/220118>\
**Category:** Uncategorized\
**Created:** [March 22, 2007, 9:16pm UTC](https://forum.kirupa.com/t/loader-doesnt-finish-loading/220118 "2007-03-22T21:16:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjohnson](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sjohnson](https://forum.kirupa.com/u/sjohnson)\
**Post date:** [March 22, 2007, 9:16pm UTC](https://forum.kirupa.com/t/loader-doesnt-finish-loading/220118/1 "2007-03-22T21:16:34Z")

</div>

Hi all,

[www.thesickonebrand.com](http://www.thesickonebrand.com)

I’ve been working on this for a day now, and I’m stumped…I had the whole movie working without the percentage bar, and dynamic percentage. All I wanted to do was add it.

I read the tutorial from [http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

However, when I implemented it on my site …It shows and all but it doesn’t finish loading 100% before playing …

Here’s my actionscript:  
On my first frame, I have:

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(“main”,10)  
}

For some reason, I have a feeling I need to add a piece of code to the above statement, that tells the movie not to go along until the movie is completely loaded. Anyway…

On my second frame, I have:

this.gotoAndPlay(“preloader”,1)

Any Ideas??  
All are appreciated
