import mx.transitions.Tween;
import mx.transitions.easing.Strong;
var xTween:Tween;
var yTween:Tween;
var followSecs:Number = 1;
var follower:MovieClip = _root.attachMovie("Follower", "follower", _root.getNextHighestDepth());
follower.onEnterFrame = mouseFollow;
function mouseFollow():Void {
this.xtarget = _xmouse;
this.ytarget = _ymouse;
xTween = new Tween(this, "_x", Strong.easeOut, this._x, this.xtarget, followSecs, true);
yTween = new Tween(this, "_y", Strong.easeOut, this._y, this.ytarget, followSecs, true);
}
|