Hi,
I got the following code using the tweening classes to move the clip “back” to 0,0 when clicking “btn1”:
import mx.transitions.Tween;
import mx.transitions.easing.*;
myTweeningX = new Tween(back, "_x",Strong.easeInOut, 0, 0, 1, true);
myTweeningY = new Tween(back, "_y",Strong.easeInOut, 0, 0, 1, true);
btn1.onRelease=function(){
myTweeningX.continueTo(0);
myTweeningY.continueTo(0);
}
I want to add som code that randomly moves “back” to either 0,0 or let’s say 500,100 when “btn1” is clicked.
Hope someone can assist me on this.
Thanks!