Displays some text and dispatches an event when clicked.
protected var _action:String
action:String [read-only]
The action sent by the button when clicked.
Implementation
public function get action():String
border:Boolean [read-write]
Whether the button has a border drawn around it.
Implementation
public function get border():Boolean
public function set border(value:Boolean):void
protected var _text:TextField
text:String [read-write]
The text shown on the button.
Implementation
public function get text():String
public function set text(value:String):void
public function Button(text:String = "", action:String = "")
Creates a new button.
Parameters
| text:String (default = "") — to display on the button
|
| |
| action:String (default = "") — the string to send in the event
|
protected function handleMouseClick(event:MouseEvent):voidParameters