hi everybody!
i’d like to know how to make buttons move in the direction the mouse is moved.
like this site:
i was playing with this code, but still I do not obtain the wished effect:
import mx.transitions.Tween;
mc1.onRollOver=function(){
var tw1:Tween = new Tween(mc1, “_x”, mx.transitions.easing.Bounce.easeOut, this._x, this._x+30Math.random(), 3, true);
var tw2:Tween = new Tween(mc1, “_y”, mx.transitions.easing.Bounce.easeOut, this._y, this._y+30Math.random(), 3, true);
var tw3:Tween = new Tween(mc1, “_rotation”, mx.transitions.easing.Bounce.easeOut, this._rotation, this._rotation+30*Math.random(), 3, true);
}
i guess it isn’t difficult, but i don’t know so much actionsript.
thanx in advance, i hope you can help me…
cheers!