# Width, height, rotation, scale wrong behaviour

**URL:** https://forum.kirupa.com/t/width-height-rotation-scale-wrong-behaviour/282768
**Category:** flash
**Created:** [February 26, 2009, 7:40am UTC](https://forum.kirupa.com/t/width-height-rotation-scale-wrong-behaviour/282768 "2009-02-26T07:40:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fido\_glc](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@fido\_glc](https://forum.kirupa.com/u/fido_glc)
#### Post date: [February 26, 2009, 7:40am UTC](https://forum.kirupa.com/t/width-height-rotation-scale-wrong-behaviour/282768/1 "2009-02-26T07:40:17Z")

</div>

Hello.

I am working with the following properties in handling movieclips: \_width, \_height, \_rotation, \_xscale, \_yscale.

The problem is that the movieclips are not as flexible as I thought they would be. What I expect in working with these properties is like working with shapes inside of Flash, but movieclips behave differently.

For example:

If I set the \_rotation property of a movieclip (mc1) to, say 45, and then I modify the \_width property, then the movieclip is resizing along the 45 degrees axis, not the horizontal 0 degrees one, which I need. The same happens with the \_height. Is there another way to rotate the movieclip and keep the horizontal resizing axis ?

I tried ambeding another movieclip (mc2) inside it and changing the rotation to that one. This allows me to change the \_width of mc1 along the horizontal axis.

But another problem occurs. When mc2 is rotating, mc1’s width is, normally, changing. mc2 is a rectangle. But I can not track the proper \_x value of mc1.

Also, if I modify the \_width property of mc1, whenever I rotate mc2, it rotates in the boundries of mc1’s width as if the rotation was viewed form the side:

For example:

mc2.\_height = 100  
mc2.\_width = 10  
mc1.\_height = 100  
mc1.\_height = 10

If I set mc2.\_rotation to 90 then mc2.\_height = 10 and mc2.\_width = 10, instead of mc2.\_height = 10 and mc2.\_width = 100. (I know that the actual values are 10x100 but 10x10 is what the user sees)

A similar problem is when I use \_xscale or \_yscale to flip the movieclip.

Please let me know if what I said is clear.

Is there anything I am missing about these properties ? I need to resize, rotate and scale as if I was working with a shape in Flash. How can I do that with movieclips ?

Any help would be appreciated.

Thank you.
