View Full Version : Centered _xscale tween?

03-17-2007, 07:14 AM

I'm using the Tween + easing classes to create a scaling tween effect. The movieclip in question is a simple box whichgoes from 1x1 to 50x50.

The effect works fine, however it scales from the upper right corner of the box.

I want the box to scale from the center point. I can easily create this effect on the timeline and manually tween it, however I'm loading in images into the "box" dynamically and need it to change to various sizes depending on the image size. Therefore, tweening on the timeline won't work as I can't edit the .fla ever time I want to update pictures.


03-17-2007, 07:38 AM
Fixed it.

problem w/ registration point.

the movieclip was centered but the image inside wasn't!

03-17-2007, 02:31 PM
You know how many times I do that? That is probably my number one error, either that or using AS to call an MC from the library and forgetting to enable linkage on the MC itself. I hate that one!