# \_width is changing the x coords...?

**URL:** <https://forum.kirupa.com/t/-width-is-changing-the-x-coords/131378>\
**Category:** Uncategorized\
**Created:** [December 15, 2004, 4:46am UTC](https://forum.kirupa.com/t/-width-is-changing-the-x-coords/131378 "2004-12-15T04:46:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cliffy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cliffy/32/234_2.png) [@cliffy](https://forum.kirupa.com/u/cliffy)\
**Post date:** [December 15, 2004, 4:46am UTC](https://forum.kirupa.com/t/-width-is-changing-the-x-coords/131378/1 "2004-12-15T04:46:33Z")

</div>

I am making a progress bar and most of it works, except when I make the changes the \_width property of the mc. for some reason when the incrementation is done on it the x coords is what changes and it races across the screen. I have tweaked it to make the incrementation on the height and it works fine. so I am really lost. Is there a bug that I don’t know about?

Here is the code for the first frame  
onEnterFrame = function()  
{  
var percentC;

```
percentC = _root.getBytesLoaded() / _root.getBytesTotal();
_root.progressBar_mc.bar._width = 130 * percentC; //here is where if I change it to _height it works fine
test._width = 130 * percentC; //test mc on main timeline it works fine, but is a simple object, the other progress bar looks much better

```

}

Here is the site to see what I mean  
[http://www.quantics.ca/flash/01\_ProgressBar.html](http://www.quantics.ca/flash/01_ProgressBar.html)

it is the blue scrollbar that is acting funny, the red one is the simple one

Thanks for the help
