| Methods | Properties | Effects | Events | Styles | Frames | No Frames |
Direct Known Subclasses![]()
The SimpleButton control creates a button that does not need to be resized. The SimpleButton control supports a text label. The SimpleButton control is also the the only control that allows you to specify skin properties in MXML.
MXML Syntax
The SimpleButton class inherits all the properties of its parent classes, and the following properties:
<mx:SimpleButton
selected="true|false"
toggle="true|false"
falseUpSkin="SimpleButtonUp"
falseDownSkin="SimpleButtonIn"
falseOverSkin="No default."
falseDisabledSkin="SimpleButtonUp"
trueUpSkin="SimpleButtonIn"
trueDownSkin="No default."
trueOverSkin="No default."
trueDisabledSkin="SimpleButtonIn"
buttonDown="Event handler; no default."
buttonDragOut="Event handler; no default."
click="Event handler; no default."
/>
| Methods |
| Methods inherited from class mx.core.UIComponent |
drawFocus
getFocus
getFocusManager
setEnabled
setFocus
|
| Properties | |
| falseDisabledSkin:
StringSpecifies the skin for the disabled state. |
| falseDownSkin:
StringSpecifies the skin for the pressed state. |
| falseOverSkin:
StringSpecifies the skin for the over state. |
| falseUpSkin:
StringSpecifies the skin for the up state. |
| selected:
BooleanIf true, the user clicked the button. |
| toggle:
BooleanIf true, the button stays pressed when the user clicks it. |
| trueDisabledSkin:
StringSpecifies the skin for the disabled-toggled state. |
| trueDownSkin:
StringSpecifies the skin for the pressed-toggled state. |
| trueOverSkin:
StringSpecifies the skin for the over-toggled state. |
| trueUpSkin:
StringSpecifies the skin for the toggled state. |
static | version:
StringVersion string for this class. |
| Properties inherited from class mx.core.UIComponent |
enabled
errorString
tabEnabled
tabIndex
version
|
| Effects |
| Effects inherited from class mx.core.UIComponent |
focusInEffect
focusOutEffect
|
| Effects inherited from class mx.core.UIObject |
creationCompleteEffect
hideEffect
mouseDownEffect
mouseOutEffect
mouseOverEffect
mouseUpEffect
moveEffect
resizeEffect
showEffect
|
| Events | |
buttonDown | Broadcast when the user clicks the Button control. The click event fires when the user releases the Button control. The target property of the event object contains a reference to the component that triggered the event. The type property contains the name of the event, buttonDown. |
buttonDragOut | Broadcast when the user clicks the Button control, then drags the mouse off the control. The target property of the event object contains a reference to the component that triggered the event. The type property contains the name of the event, buttonDragOut. |
click | Broadcast when the user clicks on the button. The target property of the event object contains a reference to the component that triggered the event. The type property contains the name of the event, click. |
| Events inherited from class: mx.core.UIComponent |
focusIn focusOut invalid keyDown keyUp valid valueCommitted |
| Styles | |
repeatDelay |
Type:
Number
Format:
Time
CSS Inheritance:
noNumber of milliseconds to wait after the first buttonDown event before repeating buttonDown events at the repeatInterval. The default value is 500. |
repeatInterval |
Type:
Number
Format:
Time
CSS Inheritance:
noNumber of milliseconds between buttonDown events if you press and hold on a button. The default value is 35. |
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
horizontalGap
leading
marginLeft
marginRight
textAlign
textDecoration
textIndent
verticalGap
|
| Property Detail |
falseDisabledSkin:
String
falseDownSkin:
String
falseOverSkin:
String
falseUpSkin:
String
selected:
Boolean
true, the user clicked the button.
toggle:
Boolean
true, the button stays pressed when the user clicks it.
trueDisabledSkin:
String
trueDownSkin:
String
trueOverSkin:
String
trueUpSkin:
String
static
version:
String
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/15/asdocs_en/mx/controls/SimpleButton.html