Class: Button

Button

GUI's button

Constructor

new Button()

Source:

Methods

appendTo(parentContainer)

Appents the Button to a parent container
Parameters:
Name Type Description
parentContainer Container CreateJS Container
Source:

hide()

Hides the button
Source:

onClick(eventListener)

Sets event listener for the click event
Parameters:
Name Type Description
eventListener function An event listener function
Source:

removeClick()

Removes the event listener
Source:

resize(x, y, w, h)

Sets new size and updates 'shape' object
Parameters:
Name Type Description
x number
y number
w number
h number
Source:

show()

Shows the button
Source: