mx.controls
Class
SimpleButton
Direct Known Subclasses
mx.controls.Button
class
SimpleButton
extends mx.core.UIComponentThe SimpleButton control creates a button that does not need to be resized. The SimpleButton control supports icons and text.
MXML Syntax
The SimpleButton class inherits all the properties of its parent classes, and the following properties:
<mx:tagname
selecte="treu|false"
toggle="true|false"
/>
static | version:String
ComponentVersion is for internal use only. |
| toggle:Boolean
[Read-Only]
If true, the button stays pressed when the user clicks it. |
| selected:Boolean
[Read-Only]
If true, the user clicked the button. |
buttonDown | Broadcast when the user clicks the Button control. The click event fires when the user releases the Button control. Target contains a reference to the component that triggered the event. Type contains the name of the event.
|
buttonDragOut | Broadcast when the user clicks the Button control, then drags the mouse off the control. Target contains a reference to the component that triggered the event. Type contains the name of the event.
|
click | Handler for click events. Target contains a reference to the component that triggered the event. Type contains the name of the event.
|
repeatInterval |
Type: Number
Format: Time
CSS Inheritance: no
Number of milliseconds between buttonDown events if you press and hold on a button. The default value is 35. |
repeatDelay |
Type: Number
Format: Time
CSS Inheritance: no
Number of milliseconds to wait after the first buttonDown event before repeating buttonDown events at the repeatInterval. The default value is 500. |
selected
selected:Boolean
[Read-Only]
If true, the user clicked the button.
toggle
toggle:Boolean
[Read-Only]
If true, the button stays pressed when the user clicks it.
version
static version:String
ComponentVersion is for internal use only.