Packagepq.multitouch.gestures
Classpublic class DurativeGesture
Inheritance DurativeGesture InheritanceEventGesture

For DurativeGesture, the gesture event has valid GestureState status. When the gesture event firstly happened, e.gestureState = GestureState.Begin; at the next frame, if the gesture event goes on, e.gestureState = GestureState.Progress; when the gesture event finally stopped, e.gestureState = GestureState.End.



Public Properties
 PropertyDefined by
   isGestureStateEnabled : Boolean
[read-write]Indicate whether the gesture event will be set with proper gesture state before dispatched.
DurativeGesture
Public Methods
 MethodDefined by
  
DurativeGesture(gestureType:String):void
DurativeGesture class is customized to recognize DualUp action.
DurativeGesture
Protected Methods
 MethodDefined by
  
raiseStateEvent(e:BaseGestureEvent):void
RaiseStateEvent raise gesture events with proper GestureState(GestureState.Begin ,GestureState.Progress, GestureState.End), when IsGestureStateEnabled == true; if IsGestureStateEnabled == false, all events are set as GestureState.Progress.
DurativeGesture
Property detail
isGestureStateEnabled property  
isGestureStateEnabled:Boolean [read-write]

Indicate whether the gesture event will be set with proper gesture state before dispatched.

Implementation

public function get isGestureStateEnabled():Boolean

public function set isGestureStateEnabled(value:Boolean):void

Method detail

raiseStateEvent

() method  
protected function raiseStateEvent(e:BaseGestureEvent):void

RaiseStateEvent raise gesture events with proper GestureState(GestureState.Begin ,GestureState.Progress, GestureState.End), when IsGestureStateEnabled == true; if IsGestureStateEnabled == false, all events are set as GestureState.Progress.

Parameters
e:BaseGestureEvent — gesture event instance.