Here’s the code I’m using to drag an object and I wonder how could I make the movement to be “eased” when I release the mouse (MOUSE_UP) I’ve been thinking of using Caurina Tweener or Grant’s Tweener? Any help???
import flash.display.MovieClip;
import flash.events.MouseEvent;
wave_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
wave_mc.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
stage.addEventListener(Event.MOUSE_LEAVE, simulateRelease);
var rectangle:Rectangle = new Rectangle(0,0,1300,4100);
function mouseDownHandler(evt:MouseEvent):void
{
var object = evt.target;
object.startDrag(false, rectangle);
}
function mouseUpHandler(evt:MouseEvent):void
{
var obj = evt.target;
obj.stopDrag();
}
function simulateRelease(event:Event):void
{
stopDrag();
}