PDA

View Full Version : change width on one side only


aneuryzma
12-22-2008, 08:48 AM
Hi,

I want to change the width of an object using actionscript but I want it to resize only in one direction instead of boths.

How can I do it from actionscript ?

thanks

lordofduct
12-22-2008, 09:06 AM
only one direction? Width is only one direction...

maybe you should be a little more descriptive.

aneuryzma
12-22-2008, 09:36 AM
ya ok, you are right. What I mean is that the bar is growing in the x direction to both sides (left and right). I want it to dilate only on the right side, and keep the left border keeping the same x coordinate.

lordofduct
12-22-2008, 11:24 AM
That's usually why most objects are drawn with the origin in the upper left corner as it is the easiest to cope with... where is the origin of this object in relation to the graphics inside the object?