Actionscript with ease out on drop ... HELP!

Hi there,
It’s my first post here at Kirupa - what a cool site, great insperation. thx everyone.

I’m working on this script I found here at Kirupa. I’m having som problem which I can’ solve by myself - so i’m asking for some assistance.

The site:
5-10 MC’s (buisness cards) which you can drag around the scene and release them. onRelease they should ease out …

It’s the ease out which is the problem…

Here is the AS:

[COLOR=“Blue”]on (press, dragOver) {
startDrag(_root.mc02);
}
on (release, rollOut, dragOut) {
stopDrag();
}
on (press, release, dragOver, dragOut) {
_root.x +=2;
_root.mc02.swapDepths(_root.x);
} [/COLOR]

What I need, but do not know how to solve is: When I release the MC it should ease out in the same direction as the mouse came from (makes sence) - I’ve seen it many times on the net and it’s way cool.

I found this AS:

[COLOR=“RoyalBlue”]onClipEvent (load) {
_root.about.ease = 2;
_root.about.targX = _root.about._x;
_root.about.targY = _root.about._y;
_root.about.onPress = function() {
mx.behaviors.DepthControl.bringToFront(this);
this.drag = true;
};
_root.about.onEnterFrame = function() {
if (this.drag == true) {
this.targX = _root._xmouse;
this.targY = _root._ymouse;
}
if (this._x != this.targX | this._y != this.targY) {
this._x += (this.targX-this._x)/this.ease;
this._y += (this.targY-this._y)/this.ease;
}
};
_root.about.onMouseUp = function() {
this.drag = false;
};
}[/COLOR]

Which does what I want, except from not being able to add any button to the MC - the button should open the related MC in a loader …

I hope you can help me …

Thx again guys … and enjoy your saturday.
Jake