# Preloader Problems

**URL:** https://forum.kirupa.com/t/preloader-problems/269662
**Category:** Uncategorized
**Created:** [August 30, 2008, 5:54am UTC](https://forum.kirupa.com/t/preloader-problems/269662 "2008-08-30T05:54:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Meaddas](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@Meaddas](https://forum.kirupa.com/u/Meaddas)
#### Post date: [August 30, 2008, 5:54am UTC](https://forum.kirupa.com/t/preloader-problems/269662/1 "2008-08-30T05:54:35Z")

</div>

Hello,

I’m having some problems with a preloader I’m trying to make for a client. Below is what I’m trying to do, the method I’m trying to achieve it with, and also some problems I’m encountering. Fair warning, I’m not an AS expert. In fact, I struggle with it daily ![](http://www.ultrashock.com/forums/images/us/smilies/rolleyes.gif)

**What I’m trying to do:** 25 balls drop into a box based on the percentage of the movie is loaded. For instance, all 25 balls will be in the box when 100% of the movie has loaded up. Can you give any suggestions on how to make this happen with the code below?

**My method:** I’m trying to get away from a preloader that uses 2 frames. ie frame 1 has

Code:  
framesloaded = Math.round(this.getBytesLoaded());totalbytes = Math.round(this.getBytesTotal());barpercentage = framesloaded/totalbytes;this.loadText = Math.round(barpercentage_100)+"%";this.loaderBar.\_width = barpercentage_175;  
with

Code:  
gotoAndPlay(3)  
on frame 2.

**A problem:** Lastly, once my preloader shows up, it’s starting off at like 50% completed. I’d like to see the entire thing play out from 0%-100%. How can I go about making this happen?

Thanks for any help you can give me.

Meaddas
