Packagepq.multitouch.events
Classpublic class PQTouchEvent
Inheritance PQTouchEvent InheritanceBaseTouchEvent

The PQTouchEvent class represents basic events related with touch action.



Public Properties
 PropertyDefined by
   touchID : int
[read-only]Indicates the ID of the touch blob that is related to the touch event.
PQTouchEvent
   width : Number
[read-only]Indicates the width of the touch blob that is related to the touch event.
PQTouchEvent
   height : Number
[read-only]Indicates the height of the touch blob that is related to the touch event.
PQTouchEvent
   downObj : DisplayObject
[read-only]Indicates the touch-down DisplayObject related with the touch event.
PQTouchEvent
   isMoving : Boolean
[read-only]Indicates whether the touch blob related with the touch event is moving.
PQTouchEvent
   stageX : Number
[read-only] The horizontal coordinate at which the touch event occurred in global Stage coordinates.
PQTouchEvent
   stageY : Number
[read-only] The vertical coordinate at which the touch event occurred in global Stage coordinates.
PQTouchEvent
Public Methods
 MethodDefined by
  
PQTouchEvent(type:String, bubbles:Boolean = true, cancelable:Boolean = false, touchID:int = 0, screenX:Number = NaN, screenY:Number = NaN,
width:Number = 1, height:Number = 1, downobj:DisplayObject = null):void
Creates an PQTouchEvent object that contains information about multi-touch.
PQTouchEvent
  
toString():String
Returns a string that contains properties of the PQTouchEvent object.
PQTouchEvent
Public Constants
 ConstantDefined by
   TOUCH_DOWN : String = "TOUCH_DOWN"
[static]Defines the value of the type property of a touchDown event object.
PQTouchEvent
   TOUCH_MOVE : String = "TOUCH_MOVE"
[static]Defines the value of the type property of a touchMove event object.
PQTouchEvent
   TOUCH_UP : String = "TOUCH_UP"
[static]Defines the value of the type property of a touchUp event object.
PQTouchEvent
  TOUCH_CLICK : String = "TOUCH_CLICK"
[static]Defines the value of the type property of a touchClick event object.
PQTouchEvent
  TOUCH_DOUBLECLICK : String = "TOUCH_DOUBLECLICK"
[static]Defines the value of the type property of a touchDoubleClick event object.
PQTouchEvent
  TOUCH_OVER : String = "TOUCH_OVER"
[static]Defines the value of the type property of a touchOver event object.
PQTouchEvent
  TOUCH_OUT : String = "TOUCH_OUT"
[static]Defines the value of the type property of a touchOut event object.
PQTouchEvent
Property detail
touchIDproperty
touchID:int [read-only]

Indicates the ID of the touch blob that is related to the touch event.

Implementation

public function get touchID():int

widthproperty
width:Number [read-only]

Indicates the width of the touch blob that is related to the touch event.

Implementation

public function get width():Number

heightproperty
height:Number [read-only]

Indicates the height of the touch blob that is related to the touch event.

Implementation

public function get height():Number

downObjproperty
downObj:DisplayObject [read-only]

Indicates the touch-down DisplayObject related with the touch event.

Implementation

public function get downObj():DisplayObject

isMovingproperty
isMoving:Boolean [read-only]

Indicates whether the touch blob related with the touch event is moving.

Implementation

public function get isMoving():Boolean

stageXproperty
stageX:Number [read-only]

The horizontal coordinate at which the touch event occurred in global Stage coordinates.

Implementation

public function get stageX():Number

stageYproperty
stageY:Number [read-only]

The vertical coordinate at which the touch event occurred in global Stage coordinates.

Implementation

public function get stageY():Number

Method detail
toString ()method
public override function toString():String

Returns a string that contains properties of the PQTouchEvent object. The string is in the following format: [PQTouchEvent frameID=value type=value touchID=value ... eventPhase=value]

Returns

String properties string of the PQTouchEvent object.
Constant detail
TOUCH_DOWNConstant
public static const TOUCH_DOWN:String

Defines the value of the type property of a touchDown event object.

TOUCH_MOVEConstant
public static const TOUCH_MOVE:String

Defines the value of the type property of a touchMove event object.

TOUCH_UPConstant
public static const TOUCH_UP:String

Defines the value of the type property of a touchUp event object.

TOUCH_CLICKConstant
public static const TOUCH_CLICK:String

Defines the value of the type property of a touchClick event object.

TOUCH_DOUBLECLICKConstant
public static const TOUCH_DOUBLECLICK:String

Defines the value of the type property of a touchDoubleClick event object. Make sure TouchOptions.isDoubleClickEnabled == true before use this event.

TOUCH_OVERConstant
public static const TOUCH_OVER:String

Defines the value of the type property of a touchOver event object.

TOUCH_OUTConstant
public static const TOUCH_OUT:String

Defines the value of the type property of a touchOut event object.

TOUCH_PAUSEConstant
public static const TOUCH_PAUSE:String

Defines the value of the type property of a touchPause event object.When the touch blob moves around for a while and then anchors, this event will be dispatched.