Hello everyone,
I am learning how to animate with AS and currently am stuck. At the moment I am working on a movieclip, which on release is moving to the right with its alpha changing. Here is the code I am using.
import mx.transitions.Tween;
import mx.transitions.easing.*;
circle1._x=50;
circle1._alpha = 40;
circle1.onRelease=function(){
new Tween(circle1, “_alpha”, Strong.easeOut, 40, 100, 1.2, true);
new Tween(circle1, “_x”, Back.easeOut, 50, 200, 1.2, true);
}
How can I change the original _x= position of the button to the new position it ends up at after it is clicked?
Example
first click makes the MC move from 50 to 200
Second click should move it 250 to 450
Third click should move it 450 to 650