UI. UIEvent

UIEvent Class is used to define the event type of the UI component class.


new UIEvent()



(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:

currentTarget :Sprite

Event currently bubbling object.
Inherited From:

delta :int

Sliding increment of roller
Inherited From:

keyCode :int

Keyboard value
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).
Inherited From:

nativeEvent :Object

Native browser events.
Inherited From:

shiftKey :Boolean

Indicates whether the Shift key is active (true) or inactive (false).
Inherited From:

stageX :Number

The X axis coordinates of the mouse on the Stage
Inherited From:

stageY :Number

The Y axis coordinates of the mouse on the Stage
Inherited From:

target :Sprite

Event object.
Inherited From:

touches :Array

Touch point list.
Inherited From:

touchId :int

The unique identification number assigned to the touch point (as int).
Inherited From:

type :String

Event type.
Inherited From:


setTo(type, currentTarget, target) → {Event}

Set event data.
Inherited From:
Name Type Description
type String Event type.
currentTarget Sprite Event object.
target Sprite Event currently bubbling object.
Return to current Event Object.


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: