HI
I want to do a simple animaion. Just want to drag a box up and when I drop it, i want the box to feel the gravity and falls.
The drag problem I’ve solved like this:
wave_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
wave_mc.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
function mouseDownHandler(evt:MouseEvent):void{
var object = evt.target;
object.startDrag();
}
function mouseUpHandler(evt:MouseEvent):void{
var obj = evt.target;
obj.stopDrag();
}
Now I need to know where I should type the tweener function. Any advide?
Thanks