1 person found this helpful
flash scales relative to the registration point. so, if your reg point is on the left edge scaling the width will not change the left edge. if your reg point is on the horizontal center, scaling the width will change left and right edges equally. and, if the reg point is on the right edge, scaling the width will not change the right edge etc.
Hmm ! Nice!
Ok so now I know how to change that in Flash IDE.
I jus tneed to change the position from the white little circle and it will scale the way I want it to.
But now, my object is used in many other things and its default position is in the center. This way when I instance it on code it will be always in the center. How can I change, through code, the position from the registration point so I wont need to make a new object in my library ?
you can't change the reg point with actionscript.
you can make it appear the reg point is changed by making your object a child of another (empty) object. position your object so the "apparent" new reg point is at 0,0 of the parent. then scale/manipulate the parent.
that answers my question!