new Events(sprite)
The Events component is a collection of events fired by the parent Game Object. Phaser uses what are known as 'Signals' for all event handling. All of the events inthis class are signals you can subscribe to, much in the same way you'd "listen" foran event. For example to tell when a Sprite has been added to a new group, you can bind a functionto the onAddedToGroup signal: sprite.events.onAddedToGroup.add(yourFunction, this); Where yourFunction is the function you want call