Core. Event

Event Is a collection of event types. Generally, when an event occurs, Event The object is passed to the event listener as a parameter.

Constructor

new Event()

Member

(static) ACTIVE_IN_HIERARCHY_CHANGED :String

Default Value:
  • "activeinhierarchychanged"

(static) ADDED :String

Default Value:
  • "added"

(static) ANIMATION_CHANGED :String

Default Value:
  • "animationchanged"

(static) BLUR :String

Default Value:
  • "blur"

(static) CHANGE :String

Default Value:
  • "change"

(static) CHANGED :String

Default Value:
  • "changed"

(static) CLICK :String

Default Value:
  • "click"

(static) CLOSE :String

Default Value:
  • "close"

(static) COMPLETE :String

Default Value:
  • "complete"

(static) COMPONENT_ADDED :String

Default Value:
  • "componentadded"

(static) COMPONENT_REMOVED :String

Default Value:
  • "componentremoved"

(static) DEVICE_LOST :String

Default Value:
  • "devicelost"

(static) DISPLAY :String

Default Value:
  • "display"

(static) DOUBLE_CLICK :String

Default Value:
  • "doubleclick"

(static) DRAG_END :String

Default Value:
  • "dragend"

(static) DRAG_MOVE :String

Default Value:
  • "dragmove"

(static) DRAG_START :String

Default Value:
  • "dragstart"

(static) EMPTY :Event

(static) ENABLE_CHANGED :String

Default Value:
  • "enablechanged"

(static) END :String

Default Value:
  • "end"

(static) ENTER :String

Default Value:
  • "enter"

(static) ERROR :String

Default Value:
  • "error"

(static) FOCUS :String

Default Value:
  • "focus"

(static) FOCUS_CHANGE :String

Default Value:
  • "focuschange"

(static) FRAME :String

Default Value:
  • "enterframe"

(static) FULL_SCREEN_CHANGE :String

Default Value:
  • "fullscreenchange"

(static) HIERARCHY_LOADED :String

Default Value:
  • "hierarchyloaded"

(static) INPUT :String

Default Value:
  • "input"

(static) KEY_DOWN :String

Default Value:
  • "keydown"

(static) KEY_PRESS :String

Default Value:
  • "keypress"

(static) KEY_UP :String

Default Value:
  • "keyup"

(static) LABEL :String

Default Value:
  • "label"

(static) LAYER_CHANGED :String

Default Value:
  • "layerchanged"
Default Value:
  • "link"

(static) LOADED :String

Default Value:
  • "loaded"

(static) MATERIAL_CHANGED :String

Default Value:
  • "materialchanged"

(static) MESH_CHANGED :String

Default Value:
  • "meshchanged"

(static) MESSAGE :String

Default Value:
  • "message"

(static) MOUSE_DOWN :String

Default Value:
  • "mousedown"

(static) MOUSE_MOVE :String

Default Value:
  • "mousemove"

(static) MOUSE_OUT :String

Default Value:
  • "mouseout"

(static) MOUSE_OVER :String

Default Value:
  • "mouseover"

(static) MOUSE_UP :String

Default Value:
  • "mouseup"

(static) MOUSE_WHEEL :String

Default Value:
  • "mousewheel"

(static) OPEN :String

Default Value:
  • "open"

(static) PAUSED :String

Default Value:
  • "paused"

(static) PLAYED :String

Default Value:
  • "played"

(static) PROGRESS :String

Default Value:
  • "progress"

(static) RECOVERED :String

Default Value:
  • "recovered"

(static) RECOVERING :String

Default Value:
  • "recovering"

(static) RELEASED :String

Default Value:
  • "released"

(static) REMOVED :String

Default Value:
  • "removed"

(static) RENDER :String

Default Value:
  • "render"

(static) RENDERQUEUE_CHANGED :String

Default Value:
  • "renderqueuechanged"

(static) RESIZE :String

Default Value:
  • "resize"

(static) RIGHT_CLICK :String

Default Value:
  • "rightclick"

(static) RIGHT_MOUSE_DOWN :String

Default Value:
  • "rightmousedown"

(static) RIGHT_MOUSE_UP :String

Default Value:
  • "rightmouseup"

(static) ROLL_OUT :String

Default Value:
  • "mouseout"

(static) ROLL_OVER :String

Default Value:
  • "mouseover"

(static) SELECT :String

Default Value:
  • "select"

(static) START :String

Default Value:
  • "start"

(static) STOPPED :String

Default Value:
  • "stopped"

(static) UNDISPLAY :String

Default Value:
  • "undisplay"

(static) VISIBILITY_CHANGE :String

Default Value:
  • "visibilitychange"

(static) WORLDMATRIX_NEEDCHANGE :String

Default Value:
  • "worldmatrixneedchanged"

altKey :Boolean

Indicates whether the Alt key is active (true) or inactive (false).

charCode :Boolean

A character code value that contains keys pressed or released. The character code value is the English keyboard value.

ctrlKey :Boolean

Indicates whether the Ctrl key is active (true) or inactive (false).

currentTarget :Sprite

Event currently bubbling object.

delta :int

Sliding increment of roller

keyCode :int

Keyboard value

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).

nativeEvent :Object

Native browser events.

shiftKey :Boolean

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

stageX :Number

The X axis coordinates of the mouse on the Stage

stageY :Number

The Y axis coordinates of the mouse on the Stage

target :Sprite

Event object.

touches :Array

Touch point list.

touchId :int

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

type :String

Event type.

Methods

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

Set event data.
Parameters:
Name Type Description
type String Event type.
currentTarget Sprite Event object.
target Sprite Event currently bubbling object.
Returns:
Type:
Event
Return to current Event 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).