# Custom preloader help

**URL:** https://forum.kirupa.com/t/custom-preloader-help/102466
**Category:** Uncategorized
**Created:** [February 24, 2004, 4:45am UTC](https://forum.kirupa.com/t/custom-preloader-help/102466 "2004-02-24T04:45:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rollala](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rollala](https://forum.kirupa.com/u/rollala)
#### Post date: [February 24, 2004, 4:45am UTC](https://forum.kirupa.com/t/custom-preloader-help/102466/1 "2004-02-24T04:45:56Z")

</div>

Hey gang, what I’ve done here is modified a regular preloader so that it goes along a half circle.

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_200;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndPlay(3);  
}

I changed the width = getPercent to 200 to accomodate the load bar graphic but this was only an uneducated estimate. What’s a better way to do this and to have the loaded part of the mask follow along the half cirle better? Hope this makes sense and someone can help me!! fla examples would be great.

Thanks in advance,  
Rollala :kir:
