Constructor
new UIEvent()
Extends
Member
(static) HIDE_TIP :String
- Default Value:
- "hidetip"
(static) SHOW_TIP :String
- Default Value:
- "showtip"
altKey :Boolean
Indicates whether the Alt key is active (true) or inactive (false).
- Inherited From:
charCode :Boolean
A character code value that contains keys pressed or released. The character code value is the English keyboard value.
- Inherited From:
ctrlKey :Boolean
Indicates whether the Ctrl key is active (true) or inactive (false).
- Inherited From:
keyLocation :uint
The position of the key on the keyboard. This is very useful for distinguishing keys that appear repeatedly on the keyboard.
For example, you can distinguish the left Shift key and the right Shift key based on the value of this property: the left Shift key is KeyLocation.LEFT, and the right Shift key is KeyLocation.RIGHT. Another example is to distinguish between the standard keyboard (KeyLocation.STANDARD) and the numeric key pressed on the numeric keypad (KeyLocation.NUM_PAD).
For example, you can distinguish the left Shift key and the right Shift key based on the value of this property: the left Shift key is KeyLocation.LEFT, and the right Shift key is KeyLocation.RIGHT. Another example is to distinguish between the standard keyboard (KeyLocation.STANDARD) and the numeric key pressed on the numeric keypad (KeyLocation.NUM_PAD).
- Inherited From:
shiftKey :Boolean
Indicates whether the Shift key is active (true) or inactive (false).
- Inherited From:
touchId :int
The unique identification number assigned to the touch point (as int).
- Inherited From:
Methods
setTo(type, currentTarget, target) → {Event}
Set event data.
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
type |
String
|
Event type. |
currentTarget |
Sprite
|
Event object. |
target |
Sprite
|
Event currently bubbling object. |
stopPropagation()
Prevents all event listeners in the subsequent node of the current node in the event stream from processing. This method does not affect any event listeners in the current node (currentTarget).
- Inherited From: