I’m trying to make the bottle of tequila fall back down to the black line (increasing in speed as it falls) when the mouse button is released, but I’m very stuck & new to AS3. Here is my code so far:
function dragBottle(e:MouseEvent):void {
e.target.startDrag();
Mouse.hide();
}
function releaseBottle(e:MouseEvent):void {
Mouse.show();
e.target.stopDrag();
}
tequila_mc.addEventListener(MouseEvent.MOUSE_DOWN,dragBottle);
tequila_mc.addEventListener(MouseEvent.MOUSE_UP,releaseBottle);
and here is the swf file
http://opax.swin.edu.au/~6950841/tequila.swf
Cheers.