# Mc fall on mouse.up?

**URL:** <https://forum.kirupa.com/t/mc-fall-on-mouse-up/295916>\
**Category:** Uncategorized\
**Created:** [September 7, 2009, 12:15pm UTC](https://forum.kirupa.com/t/mc-fall-on-mouse-up/295916 "2009-09-07T12:15:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tenspeedtodd](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@tenspeedtodd](https://forum.kirupa.com/u/tenspeedtodd)\
**Post date:** [September 7, 2009, 12:15pm UTC](https://forum.kirupa.com/t/mc-fall-on-mouse-up/295916/1 "2009-09-07T12:15:41Z")

</div>

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](http://opax.swin.edu.au/~6950841/tequila.swf)

Cheers.
