# External file preloader WITH percentage

**URL:** https://forum.kirupa.com/t/external-file-preloader-with-percentage/36719
**Category:** Uncategorized
**Created:** [December 1, 2003, 2:33am UTC](https://forum.kirupa.com/t/external-file-preloader-with-percentage/36719 "2003-12-01T02:33:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pspecial](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pspecial](https://forum.kirupa.com/u/pspecial)
#### Post date: [December 1, 2003, 2:33am UTC](https://forum.kirupa.com/t/external-file-preloader-with-percentage/36719/1 "2003-12-01T02:33:39Z")

</div>

Anybody finished Claudio’s preloader tutorial?? Great tutorial… preloader works fine for me. However, I tried tweaking it a bit and cant get a part to work. Maybe someone can suggest a fix. I’m pretty sure its a simple thing I’m not seeing. Basically, I adapted the design totally, but chose to display a percentage along with the animated “loading…” thing there.

One difference is that my buttons are located in the Transition movie clip and the loadText dynamic text field(where the percentage is displayed) is also in the Transition movie clip.

Here’s the code I attached to Content movie clip:

onClipEvent (enterFrame) {  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.transition.loadText.text = Math.round(getPercent\*100)+"%";  
if (!loaded && this.\_url != \_root.\_url) {  
if (bytes\_loaded == bytes\_total) {  
loaded = true;  
\_root.transition.gotoAndPlay(“opening”);  
}  
}  
}

If you visit [http://www.brendonblake.com](http://www.brendonblake.com) you’ll see the busted result.

For a deeper look the fla is downloadable at: [http://www.brendonblake.com/bb7.fla](http://www.brendonblake.com/bb7.fla)

I’ve spent the past week trying different things and cant seem to fix it.

ANyOne???
