Phaser button snippets

Add a button
Description:
Example:game.add.button(240,320,'buttons',clickHandler,this,0,1,0)

Sprite click
Description:
Example:this.sprite.events.onInputUp.add(this.changeColor,this);

enable a sprite for input
Description:to be able to use a click event on a sprite you first must enable it for inputs
Example:this.btnPlay.inputEnabled=true;

Canvas Click
Description:adds a listener to the entire game
Example: game.input.onUp.add(this.doClick, this);