Packagecom.whirled.contrib.avrg.probe
Classpublic class Button
InheritanceButton Inheritance flash.display.Sprite

Displays some text and dispatches an event when clicked.



Public Properties
 PropertyDefined by
  action : String
[read-only] The action sent by the button when clicked.
Button
  border : Boolean
Whether the button has a border drawn around it.
Button
  text : String
The text shown on the button.
Button
Protected Properties
 PropertyDefined by
  _action : String
Button
  _text : TextField
Button
Public Methods
 MethodDefined by
  
Button(text:String = "", action:String = "")
Creates a new button.
Button
Protected Methods
 MethodDefined by
  
handleMouseClick(event:MouseEvent):void
Button
Events
 EventSummaryDefined by
    Button
Property detail
_actionproperty
protected var _action:String
actionproperty 
action:String  [read-only]

The action sent by the button when clicked.

Implementation
    public function get action():String
borderproperty 
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
_textproperty 
protected var _text:TextField
textproperty 
text:String  [read-write]

The text shown on the button.

Implementation
    public function get text():String
    public function set text(value:String):void
Constructor detail
Button()constructor
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
Method detail
handleMouseClick()method
protected function handleMouseClick(event:MouseEvent):voidParameters
event:MouseEvent
Event detail
ButtonClickevent