Navigation
These archived docs are for Phaser 2.2.2 Phaser 3 docs can be found on newdocs.phaser.io.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

PIXI. Event

new Event(target, name, data)

Creates an homogenous object for tracking events so users can know what to expect.

Parameters
Name Type Description
target Object

The target object that the event is called on

name String

The string name of the event that was triggered

data Object

Arbitrary event data to pass along

Source code: pixi/utils/EventTarget.js, line 192

Extends

  • Object

Public Properties

[readonly] data : Object

The data that was passed in with this event.

Source code: pixi/utils/EventTarget.js, line 246

[readonly] target : Object

The original target the event triggered on.

Source code: pixi/utils/EventTarget.js, line 228

[readonly] timeStamp : number

The timestamp when the event occurred.

Source code: pixi/utils/EventTarget.js, line 258

[readonly] type : string

The string name of the event that this represents.

Source code: pixi/utils/EventTarget.js, line 237

Public Methods

stopImmediatePropagation()

Stops the propagation of events to sibling listeners (no longer calls any listeners).

Source code: pixi/utils/EventTarget.js, line 277

stopPropagation()

Stops the propagation of events up the scene graph (prevents bubbling).

Source code: pixi/utils/EventTarget.js, line 268