I am trying to do a apply a tween for the width property on a MovieClip Object but every time it changes the width and the position too, and I don’t want that. I want to change the width going to one side without changing the x and y of the object.
I tried both of thes and they gave the same result.
var c:Tween = new Tween(left, "scaleX", Strong.easeOut, 1, 1.5,20,true);
var c:Tween = new Tween(left, "width", Strong.easeOut, 20, 200,20,true);
I think it is applying the transformation according to a center of the movie clip. but I don’t know how it can be changed.
any help ?
Your problem is fact that you don’t draw your movie clip correctly and it’s bounding box dont start from x,y, 0;
what you can do
1. fix movie clip to have graphics in 0,0 position.
or
2. put your “left” object inside another object at position 0,0 and than scale.
or
3. you can proportionally move the x coordinate also while re size animation is working
where delta is offeset of your image inside movie clip.