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:
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:
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
And the source code here:
http://davidochmann.de/swf/assets/downloads/dogesture/dogesture_v1.0.zip
Have fun with DoGesture.