A basic button component with a label.
Constructor
new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float, ?label:String, ?defaultHandler:Dynamic)
Constructor
Parameters:
parent | The parent DisplayObjectContainer on which to add this PushButton. |
---|---|
xpos | The x position to place this component. |
ypos | The y position to place this component. |
label | The string to use for the initial label of this component. |
defaultHandler | The event handling function to handle the default event for this component (click in this case). |