Methods
appendTo(parentContainer)
Appents the Button to a parent container
Parameters:
Name | Type | Description |
---|---|---|
parentContainer |
Container | CreateJS Container |
hide()
Hides the button
onClick(eventListener)
Sets event listener for the click event
Parameters:
Name | Type | Description |
---|---|---|
eventListener |
function | An event listener function |
removeClick()
Removes the event listener
resize(x, y, w, h)
Sets new size and updates 'shape' object
Parameters:
Name | Type | Description |
---|---|---|
x |
number | |
y |
number | |
w |
number | |
h |
number |
show()
Shows the button