# Interpret mouse gestures with DoGesture

**URL:** https://forum.kirupa.com/t/interpret-mouse-gestures-with-dogesture/294688
**Category:** open source
**Created:** [August 18, 2009, 4:06pm UTC](https://forum.kirupa.com/t/interpret-mouse-gestures-with-dogesture/294688 "2009-08-18T16:06:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MRWUT4](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@MRWUT4](https://forum.kirupa.com/u/MRWUT4)
#### Post date: [August 18, 2009, 4:06pm UTC](https://forum.kirupa.com/t/interpret-mouse-gestures-with-dogesture/294688/1 "2009-08-18T16:06:51Z")

</div>

Hi.

DoGesture allows you to create and interpret mouse gestures within Flash projects.

The Framework helps you to create innovative navigation or intuitive operating concepts with a few lines of code.

A simple example:  
AS3:

```auto
import de.davidochmann.utilities.dogesture.DoGesture;
import de.davidochmann.utilities.dogesture.events.GestureEvent;

var gesture:DoGesture = new DoGesture(stage, 0, [{x:-50, y:50}, {x:0, y:-50}], true);
gesture.addEventListener(GestureEvent.GESTURE_COMPLETE, gestureGestureCompleteHandler);

```

AS2:

```auto
import de.davidochmann.utilities.dogesture.DoGesture;
import de.davidochmann.utilities.dogesture.events.GestureEvent;

var gesture:DoGesture = new DoGesture(this, 0, [{_x:-50, _y:50}, {_x:0, _y:-50}], true);
gesture.addEventListener(GestureEvent.GESTURE_COMPLETE, gestureGestureCompleteHandler);

```

If the user invokes a mouse press on the stage, moves the cursor to the left, then to the top, and releases the mouse key, the GestureEvent.GESTURE\_COMPLETE event gets dispatched.

You can find a example application here:  
[http://davidochmann.de/swf/assets/projects/dogesture/index.html](http://davidochmann.de/swf/assets/projects/dogesture/index.html)

And the source code here:  
[http://davidochmann.de/swf/assets/downloads/dogesture/dogesture\_v1.0.zip](http://davidochmann.de/swf/assets/downloads/dogesture/dogesture_as3_v1.0.zip)

Have fun with DoGesture.
