# Preload bar help!

**URL:** https://forum.kirupa.com/t/preload-bar-help/215751
**Category:** flash
**Created:** [February 10, 2007, 1:09am UTC](https://forum.kirupa.com/t/preload-bar-help/215751 "2007-02-10T01:09:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![f\_l\_a\_s\_h](https://avatars.discourse-cdn.com/v4/letter/f/47e85d/32.png) [@f\_l\_a\_s\_h](https://forum.kirupa.com/u/f_l_a_s_h)
#### Post date: [February 10, 2007, 1:09am UTC](https://forum.kirupa.com/t/preload-bar-help/215751/1 "2007-02-10T01:09:13Z")

</div>

I am creating a preload bar, and I want my registration point in the centre, what is the actionscript for that? I have tried:

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

but doesn’t work
