Código ActionScript :
import mx.transitions.Tween;
import mx.transitions.easing.*;
//
var tweenDown:Tween;
var tweenUp:Tween;
//
image.onRelease = function ()
{
tweenDown = new Tween(this, "_y", Strong.easeInOut, this._y, (this._y + 20), 2, true);
//
tweenDown.onMotionFinished = function()
{
this.swapDepths(_parent.getNextHighestDepth());
tweenUp = new Tween(this, "_y", Strong.easeInOut, this._y, (this._y - 20), 2, true);
}
};