# Bar Preloader Help ::.. Start at 60% or Frame

**URL:** <https://forum.kirupa.com/t/bar-preloader-help-start-at-60-or-frame/163512>\
**Category:** Uncategorized\
**Created:** [September 22, 2005, 10:47pm UTC](https://forum.kirupa.com/t/bar-preloader-help-start-at-60-or-frame/163512 "2005-09-22T22:47:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuckfarley](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@chuckfarley](https://forum.kirupa.com/u/chuckfarley)\
**Post date:** [September 22, 2005, 10:47pm UTC](https://forum.kirupa.com/t/bar-preloader-help-start-at-60-or-frame/163512/1 "2005-09-22T22:47:56Z")

</div>

Hello all…

I have built a preloader from a tutorial that works great for loading the whole movie but what I would ideally like is to have it have it only load a percentage, or preferably load the first 420 frames. It has a load bar and text output and I would like to still be able to use those…

(420 frames loaded = 100%) or (60% bytes loaded = 100%)

Here is the code I am using… I would be grateful for any help. I have been experimenting like mad and wading through countless threads to no avail.

* * *

\_root.stop();  
myInterval = setInterval(preloader, 10);  
function preloader(){  
if (\_root.getBytesLoaded()\>=\_root.getBytesTotal()){  
\_root.play(30);  
clearInterval(myInterval);  
}  
bar.\_xscale = (\_root.getBytesLoaded()/\_root.getBytesTotal())\*100;  
myTextField.text = Math.round(\_root.getBytesLoaded()/\_root.getBytesTotal()\*100);  
}

* * *

Cheers,

Chuck
