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.