Ok, it's not perfect, but it works. Place this code on a frame:
Code:
MovieClip.prototype.onPress = function() {
this.drag = true;
this.startDrag(false);
this.xPos = this._x;
this.yPos = this._y;
this.onEnterFrame = function() {
if (this.drag) {
this.xspeed = this._x - this.xPos; // x mouse speed
this.yspeed = this._y - this.yPos; // y mouse speed
this.xPos = this._x;
this.yPos = this._y;
} else {
this._x += this.xSpeed;
this._y += this.ySpeed;
this.xSpeed *= 0.8; // decrease x speed by 20%
this.ySpeed *= 0.8; // decrease y speed by 20%
if (Math.abs(this.xSpeed) < 0.1 && Math.abs(this.ySpeed) < 0.1) { // if almost no movement, end enterframe loop
delete this.onEnterFrame;
}
}
}
}
MovieClip.prototype.onMouseUp = function() {
this.drag = false;
this.stopDrag();
}
Will make all movie clips on the same timeline "throwable". If you just want an instance to behave like this replace MovieClip.prototype with that instance name.
I've attached a fla also.