AcheGesture is a gesture recognition frameworks based on Starling framework designed for Adobe Air Mobile apps. It is inspired by apple’s iOS development framework UIGestureRecognizers(Cocoa-Touch UIKit). AcheGesture has the following features:
- Provide seven basic gestures, including: Tap, Double Tap, Pinch, Pan, Swipe, Rotate and Long press.
- Each gesture of the framework can be configured. “Long pressâ€, for instance, has a threshold time for recognition.
- Handle conflict between different gestures, like one gesture recognition requires another recognition to fail(requireGestureRecognizerToFail), recognition priority, simultaneous effect and so on.
- Use callback function to send different state of the gestures(discrete gestures and continuous gestures). Gestures’ state includes: recognized, possible, failed, began, changed, ended and cancelled.
- Extendable. It can be extended for new gesture-recognizers using GestureRecognizerPlugin
- Free and open source, can be used under any circumstances.
Sample
private function linkGesture():void { var g1:Gesture = new TapGesture(onTapRecognized, onTapPossible); GestureManager.add(_btn, new GestureVars().onTap(g1).vars); } function onTapRecognized(e:AcheGestureEvent):void { trace("tap gesture recognized!"); } private function onTapPossible(e:AcheGestureEvent):void { trace("tap gesture onTapPossible >>>" + e.possible); }
RT @as3gamegears: New: AcheGesture (gesture recognition frameworks based on #Starling) http://t.co/zADWM683 #as3 #flash #gamedev