Package | pq.multitouch.events |
Class | public class PQTouchEvent |
Inheritance | PQTouchEvent ![]() |
Property | Defined 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 |
Method | Defined 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 |
Constant | Defined 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 |
touchID | property |
touchID:int
[read-only]
Indicates the ID of the touch blob that is related to the touch event.
Implementationpublic function get |
width | property |
width:Number
[read-only]
Indicates the width of the touch blob that is related to the touch event.
Implementationpublic function get |
height | property |
height:Number
[read-only]
Indicates the height of the touch blob that is related to the touch event.
Implementationpublic function get |
downObj | property |
downObj:DisplayObject
[read-only]
Indicates the touch-down DisplayObject related with the touch event.
Implementationpublic function get |
isMoving | property |
isMoving:Boolean
[read-only]
Indicates whether the touch blob related with the touch event is moving.
Implementationpublic function get |
stageX | property |
stageX:Number
[read-only]
The horizontal coordinate at which the touch event occurred in global Stage coordinates.
Implementationpublic function get |
stageY | property |
stageY:Number
[read-only]
The vertical coordinate at which the touch event occurred in global Stage coordinates.
Implementationpublic function get |
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]
ReturnsString — properties string of the PQTouchEvent object. |
TOUCH_DOWN | Constant |
public static const TOUCH_DOWN:String
Defines the value of the type property of a touchDown event object.
TOUCH_MOVE | Constant |
public static const TOUCH_MOVE:String
Defines the value of the type property of a touchMove event object.
TOUCH_UP | Constant |
public static const TOUCH_UP:String
Defines the value of the type property of a touchUp event object.
TOUCH_CLICK | Constant |
public static const TOUCH_CLICK:String
Defines the value of the type property of a touchClick event object.
TOUCH_DOUBLECLICK | Constant |
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_OVER | Constant |
public static const TOUCH_OVER:String
Defines the value of the type property of a touchOver event object.
TOUCH_OUT | Constant |
public static const TOUCH_OUT:String
Defines the value of the type property of a touchOut event object.
TOUCH_PAUSE | Constant |
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.