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 - pixi/utils/EventTarget.js, line 192

Extends

  • Object

Members

<readonly> data :Object

The data that was passed in with this event.

Source - pixi/utils/EventTarget.js, line 246

<readonly> target :Object

The original target the event triggered on.

Source - pixi/utils/EventTarget.js, line 228

<readonly> timeStamp :Number

The timestamp when the event occurred.

Source - pixi/utils/EventTarget.js, line 258

<readonly> type :String

The string name of the event that this represents.

Source - pixi/utils/EventTarget.js, line 237

Methods

stopImmediatePropagation()

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

Source - pixi/utils/EventTarget.js, line 277

stopPropagation()

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

Source - pixi/utils/EventTarget.js, line 268
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Thu Feb 18 2016 14:41:10 GMT+0000 (GMT Standard Time) using the DocStrap template.