The TouchSpriteBase class is the base class for all touch and gestures enabled
Sprites that require additional display list management.
Properties
mouseChildren="false"
touchChildren="false"
targetParent = "false"
disableNativeTransform = "true"
disableAffineTransform = "true"
gestureEvents = "true"
clusterEvents = "false"
transformEvents = "false"
public var _$height:Number = 0public var _$rotation:Number = 0public var _$scaleX:Number = 1public var _$scaleY:Number = 1public var _$width:Number = 0public var _$x:Number = 0public var _$y:Number = 0public var _gestureTweenOn:Boolean = false$rotation:Number Implementation public function get $rotation():Number public function set $rotation(value:Number):void$scaleX:Number Implementation public function get $scaleX():Number public function set $scaleX(value:Number):void$scaleY:Number Implementation public function get $scaleY():Number public function set $scaleY(value:Number):void$transformPoint:Point Implementation public function get $transformPoint():Point public function set $transformPoint(value:Point):void$x:Number Implementation public function get $x():Number public function set $x(value:Number):void$y:Number Implementation public function get $y():Number public function set $y(value:Number):voidbroadcastTarget:Boolean Implementation public function get broadcastTarget():Boolean public function set broadcastTarget(value:Boolean):voidclusterBubbling:Boolean
Allows touch points from a childclusters to copy into container touch objects
in the local parent child display list stack. This allows the for the concept of parallel
clustering of touch point. Where a single touch point can simultaniuosly be a
member of multiple touch point clusters. This allows multiple gestures to be
dispatched from multiple touch objects from a set of touch points.
Implementation public function get clusterBubbling():Boolean public function set clusterBubbling(value:Boolean):voidclusterEvents:Boolean
Determins whether clusterEvents are processed and dispatched on the touchSprite.
Implementation public function get clusterEvents():Boolean public function set clusterEvents(value:Boolean):voidclusterID:int Implementation public function get clusterID():int public function set clusterID(value:int):voidcml_item:Boolean Implementation public function get cml_item():Boolean public function set cml_item(value:Boolean):voidpublic var cO:ClusterObjectdebugDisplay:Boolean Implementation public function get debugDisplay():Boolean public function set debugDisplay(value:Boolean):voiddeltaFilterOn:Boolean
Determins whether filtering is applied to the delta values.
Implementation public function get deltaFilterOn():Boolean public function set deltaFilterOn(value:Boolean):voiddisableAffineTransform:Boolean
Determins whether internal (native) transformations are affine (dynamically centered) on the touchSprite.
Implementation public function get disableAffineTransform():Boolean public function set disableAffineTransform(value:Boolean):voiddisableNativeTransform:Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
Implementation public function get disableNativeTransform():Boolean public function set disableNativeTransform(value:Boolean):voiddN:Number Implementation public function get dN():Number public function set dN(value:Number):voidpublic static var GESTRELIST_UPDATE:String = gestureList updategestureEventComplete:Boolean
Indicates weather all gestureEvents have been completed on the touchSprite.
Implementation public function get gestureEventComplete():Boolean public function set gestureEventComplete(value:Boolean):voidgestureEventRelease:Boolean
Indicates whether all touch points have been released on the touchSprite.
Implementation public function get gestureEventRelease():Boolean public function set gestureEventRelease(value:Boolean):voidgestureEvents:Boolean
Determins whether gestureEvents are processed and dispatched on the touchSprite.
Implementation public function get gestureEvents():Boolean public function set gestureEvents(value:Boolean):voidgestureEventStart:Boolean
Indicates whether any gestureEvents have been started on the touchSprite.
Implementation public function get gestureEventStart():Boolean public function set gestureEventStart(value:Boolean):voidgestureFilters:Boolean Implementation public function get gestureFilters():Boolean public function set gestureFilters(value:Boolean):voidgestureList:Object Implementation public function get gestureList():Object public function set gestureList(value:Object):voidgestureReleaseInertia:Boolean
Determins whether release inertia is given to gestureEvents on the touchSprite.
Implementation public function get gestureReleaseInertia():Boolean public function set gestureReleaseInertia(value:Boolean):voidgestureTouchInertia:Boolean
Determins whether touch inertia is processed on the touchSprite.
Implementation public function get gestureTouchInertia():Boolean public function set gestureTouchInertia(value:Boolean):voidgestureTweenOn:Boolean Implementation public function get gestureTweenOn():Boolean public function set gestureTweenOn(value:Boolean):voidN:int Implementation public function get N():int public function set N(value:int):voidnestedTransform:Boolean Implementation public function get nestedTransform():Boolean public function set nestedTransform(value:Boolean):voidpointArray:Vector.<PointObject> [read-only]
Implementation public function get pointArray():Vector.<PointObject>pointCount:int Implementation public function get pointCount():int public function set pointCount(value:int):voidpublic var sO:StrokeObjecttargeting:Boolean
Turns off manual ALL targeting control, defaults to a simple hit test
targeting model with exclusive target clustering
Implementation public function get targeting():Boolean public function set targeting(value:Boolean):voidtargetList:Array
Allows touch and gesture events to explicitly target a group of defined
touch objects which can be outside of the local parent child display list stack
Implementation public function get targetList():Array public function set targetList(value:Array):voidtargetObject:Object
Allows touch and gesture events to explicitly target a touch object
this can be outside the local parent child display list stack
Implementation public function get targetObject():Object public function set targetObject(value:Object):voidtargetParent:Boolean
Allows touch and gesture events to explicitly target the parent touch object
Implementation public function get targetParent():Boolean public function set targetParent(value:Boolean):voidpublic var tc:TouchClusterpublic var tg:TouchGesturepublic var tiO:TimelineObjecttouchChildren:Boolean Implementation public function get touchChildren():Boolean public function set touchChildren(value:Boolean):voidtouchObjectID:int [read-only]
Implementation public function get touchObjectID():intpublic var tp:TouchPipelinetraceDebugModeOn:Boolean Implementation public function get traceDebugModeOn():Boolean public function set traceDebugModeOn(value:Boolean):voidtransformComplete:Boolean Implementation public function get transformComplete():Boolean public function set transformComplete(value:Boolean):voidtransformEventComplete:Boolean Implementation public function get transformEventComplete():Boolean public function set transformEventComplete(value:Boolean):voidtransformEvents:Boolean
Determins whether transformEvents are processed and dispatched on the touchSprite.
Implementation public function get transformEvents():Boolean public function set transformEvents(value:Boolean):voidtransformEventStart:Boolean Implementation public function get transformEventStart():Boolean public function set transformEventStart(value:Boolean):voidtransformGestureVectors:Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
Implementation public function get transformGestureVectors():Boolean public function set transformGestureVectors(value:Boolean):voidtransformStart:Boolean Implementation public function get transformStart():Boolean public function set transformStart(value:Boolean):voidpublic var trO:TransformObjectpublic var tt:TouchTransformx_lock:Boolean Implementation public function get x_lock():Boolean public function set x_lock(value:Boolean):voidy_lock:Boolean Implementation public function get y_lock():Boolean public function set y_lock(value:Boolean):voidpublic function TouchSprite()override public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers event listeners. Also processes GWTouchEvents by evaluating which types of touch events (TUIO, native touch, and mouse) are active then registers
and dispatches appropriate events.
Parameters
| type:String |
| |
| listener:Function |
| |
| useCapture:Boolean (default = false) |
| |
| priority:int (default = 0) |
| |
| useWeakReference:Boolean (default = false) |
public function onTouchDown(event:TouchEvent, target:* = null):void
decides how to assign the captured touch point to a cluster
can pass to parent, an explicit target, an explicit list or
targets or a passed to any touch object in the local display stack.
Parameters
| event:TouchEvent |
| |
| target:* (default = null) |
public function updateClusterAnalysis():void public function updateDebugDisplay():void public function updateGesturePipeline():void public function updateListeners():void
Registers/unregisters event handlers depending on the active modes
public function updateMotionClusterAnalysis():void public function updateSensorClusterAnalysis():void public function updateTObjProcessing():void
Tue Apr 16 2013, 03:24 PM -06:00