# \_xscale

**URL:** <https://forum.kirupa.com/t/-xscale/17766>\
**Category:** flash\
**Created:** [April 9, 2003, 2:18am UTC](https://forum.kirupa.com/t/-xscale/17766 "2003-04-09T02:18:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazygamer](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@crazygamer](https://forum.kirupa.com/u/crazygamer)\
**Post date:** [April 9, 2003, 2:18am UTC](https://forum.kirupa.com/t/-xscale/17766/1 "2003-04-09T02:18:20Z")

</div>

I have a preloader in my game…as of now i’m just using \_xscale for the loading bar, and what it does is go from the middle outwards. Can I somehow make it so that the bar will expand from left to right, using xscale(preferably) or some other variable. The width of it has to be a percentage, not a set number, because with xscale, I tell it to getBytesLoaded()/getBytesTotal()\*100…which makes a percentage.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 2:19am UTC](https://forum.kirupa.com/t/-xscale/17766/2 "2003-04-09T02:19:05Z")

</div>

you have to edit the MC that the bar is in and move it so the crosshairs of the stage are on the far left of the bar…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 2:24am UTC](https://forum.kirupa.com/t/-xscale/17766/3 "2003-04-09T02:24:12Z")

</div>

can you be a little bit clearer? I tried moving the bar, but it makes some weird animation…and i’m confused

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 2:25am UTC](https://forum.kirupa.com/t/-xscale/17766/4 "2003-04-09T02:25:49Z")

</div>

I also use \_width= instead.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 2:29am UTC](https://forum.kirupa.com/t/-xscale/17766/5 "2003-04-09T02:29:12Z")

</div>

[http://www.kirupa.com/developer/mx/rpoint.htm](http://www.kirupa.com/developer/mx/rpoint.htm)

like that but move it to the left instead…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 2:58pm UTC](https://forum.kirupa.com/t/-xscale/17766/6 "2003-04-09T14:58:59Z")

</div>

Make sure that inside your loadbar mc: the ‘bar’ mc is positioned x=0 and y=0.

(I’m just guessing here… i suppose the preloader is a movieclip and inside there is another mc symbol that holds the bar itself and that one needs to be scaled)

anyway: i think it’s a good habit to systematically postion everything you touch manually via the properties inspector. and allways start off with positioning subelements in MC to (0,0).

This sounds confusing I know.
