# (F5 OR F6)How to make preloaders showing percent loaded

**URL:** <https://forum.kirupa.com/t/f5-or-f6-how-to-make-preloaders-showing-percent-loaded/81070>\
**Category:** flash\
**Created:** [February 27, 2005, 2:07pm UTC](https://forum.kirupa.com/t/f5-or-f6-how-to-make-preloaders-showing-percent-loaded/81070 "2005-02-27T14:07:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evansmaker](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@Evansmaker](https://forum.kirupa.com/u/Evansmaker)\
**Post date:** [February 27, 2005, 2:07pm UTC](https://forum.kirupa.com/t/f5-or-f6-how-to-make-preloaders-showing-percent-loaded/81070/1 "2005-02-27T14:07:32Z")

</div>

Hi there.  
I`m making a preloader and everything seems to go ok, except that i want to show how much percent of the movie`s been loaded (basing on the Bytes not the frames), but i havent find the way to do it, so if you can please help me i would aprecciate.

Note; i made 200 layers, each two has a number from 0 to 1oo,and the actions to check and if not yet go back and check again. An if statement that goes like this

loadpercent = getBytesLoaded()/getBytesTotal()\*100;  
if (loadpercent != 1) {  
gotoAndPlay(2); //on this frame is an action to go back and check//  
} else {  
gotoAndPlay(3); // on this one it repeats the if statement process but the load percent must be 2, and it shows a 1% on the frame//  
}

Another note: this is not the main loader movie, this is only the movie that has the percent stuff, the main movie has an if statement like this:

On frame 1  
loadpercent = getBytesLoaded()/getBytesTotal()\*100;  
if (loadpercent != 100) {  
setProperty(\_root.bar, \_xscale, loadpercent);  
} else {  
gotoAndPlay(“Scene 1”, 1);  
}

On frame 2  
gotoAndPlay(1);

Please Help!!!
