Adding easing to hitTest movement

Hey Kirupa people… :thumb2:

I need a little help here: I’ve got a simple setup of to movieclips on stage, mc_1 and mc_2.

var theX = 120;
var theY = 90;

this.onEnterFrame = function() {
if(mc_1.hitTest(_root._xmouse, _root._ymouse, true)){
		mc_2._x = theX+((-_xmouse+theX)*(mc_2._width-mc_1._width)/mc_1._width);
		mc_2._y = theY+((-_ymouse+theY)*(mc_2._height-mc_1._height)/mc_1._height);
		}
	}

When you rollover mc_1, mc_2 start to move arcording to the x_- and _ymouse, I would like to add some easing to this movement - can this be done?

I’ve been messing around with += but I can’t quite figure it out…

Any help would be nice… :slight_smile: