# Scaling mc's

**URL:** <https://forum.kirupa.com/t/scaling-mcs/8943>\
**Category:** Uncategorized\
**Created:** [December 1, 2002, 7:07pm UTC](https://forum.kirupa.com/t/scaling-mcs/8943 "2002-12-01T19:07:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GooF](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@GooF](https://forum.kirupa.com/u/GooF)\
**Post date:** [December 1, 2002, 7:07pm UTC](https://forum.kirupa.com/t/scaling-mcs/8943/1 "2002-12-01T19:07:40Z")

</div>

somebody out there, who is able telling me how to scale a mc in just the xscale by mouse down so the left side of object keeps in their position.  
thx anyhow goof

---

<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:** [December 1, 2002, 7:28pm UTC](https://forum.kirupa.com/t/scaling-mcs/8943/2 "2002-12-01T19:28:07Z")

</div>

think of this man…  
if you want the left side of the object still in it’s position… 🙂  
make the registration of the object in the left side … easy…

flashSwimmer C:-)

---

<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:** [December 1, 2002, 7:34pm UTC](https://forum.kirupa.com/t/scaling-mcs/8943/3 "2002-12-01T19:34:34Z")

</div>

Whaaaat?

Sorry dude, I think it´s better if you explain it a little better. 🙂

You want to scale a movieclip on the x axis and not on y axis, so far so good, but just the right part of it?  
You´re tring to say that you want to scale an object but whant that his left alignment remains the same, is that it?

If it is, try this:

1-find the x alignment value, ex.: 100px

2-Use this code:

```php
on (press){
   movieClip._xscale=movieClip._xscale*2;
   movieClip._x=100-(movieClip._x/2);
}

```

[SIZE=1]the \ ***2** doubles the xscale  
the **100-(movieClip.\_x/2)** adjust the x position to the aligment at 100px on the x axis[/SIZE]

Never tested it but I think that will work:-\

=)

[EDIT] Just saw the Flash swimmer tip, its good too try his tip before mine.  
We posted at the same time:  
FlashSwimer and Guig0, sitting in a tree…  
😛 [/EDIT]

---

<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:** [December 1, 2002, 7:47pm UTC](https://forum.kirupa.com/t/scaling-mcs/8943/4 "2002-12-01T19:47:15Z")

</div>

thx sofar i’ll try it
