Methods | Properties | Effects | Events | Styles Frames | No Frames

mx.controls
Class SimpleButton

Inheritance ImageInheritance Image
Direct Known Subclasses
           mx.controls.Button, mx.controls.sliderclasses.SliderThumb

class SimpleButton
extends mx.core.UIComponent

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  

Methods inherited from class mx.core.UIObject
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



Properties
       falseDisabledSkin: String
Specifies the skin for the disabled state.
       falseDownSkin: String
Specifies the skin for the pressed state.
       falseOverSkin: String
Specifies the skin for the over state.
       falseUpSkin: String
Specifies the skin for the up state.
       selected: Boolean
If true, the user clicked the button.
       toggle: Boolean
If true, the button stays pressed when the user clicks it.
       trueDisabledSkin: String
Specifies the skin for the disabled-toggled state.
       trueDownSkin: String
Specifies the skin for the pressed-toggled state.
       trueOverSkin: String
Specifies the skin for the over-toggled state.
       trueUpSkin: String
Specifies the skin for the toggled state.
staticversion: String
Version string for this class.

Properties inherited from class mx.core.UIComponent
enabled   errorString   tabEnabled   tabIndex   version  

Properties inherited from class mx.core.UIObject
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



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
buttonDownBroadcast 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.
buttonDragOutBroadcast 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.
clickBroadcast 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 

Events inherited from class: mx.core.UIObject
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



Styles
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.
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.

Styles inherited from class mx.core.UIComponent
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

Styles inherited from class mx.core.UIObject
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



Property Detail

falseDisabledSkin

falseDisabledSkin: String  

Specifies the skin for the disabled state. The default value is SimpleButtonUp.


falseDownSkin

falseDownSkin: String  

Specifies the skin for the pressed state. The default value is SimpleButtonIn.


falseOverSkin

falseOverSkin: String  

Specifies the skin for the over state. There is no default v alue.


falseUpSkin

falseUpSkin: String  

Specifies the skin for the up state. The default value is SimpleButtonUp.


selected

selected: Boolean  

If true, the user clicked the button.


toggle

toggle: Boolean  

If true, the button stays pressed when the user clicks it.


trueDisabledSkin

trueDisabledSkin: String  

Specifies the skin for the disabled-toggled state. The default value is SimpleButtonIn.


trueDownSkin

trueDownSkin: String  

Specifies the skin for the pressed-toggled state. There is no default value.


trueOverSkin

trueOverSkin: String  

Specifies the skin for the over-toggled state. There is no default value.


trueUpSkin

trueUpSkin: String  

Specifies the skin for the toggled state. The default value is SimpleButtonIn.


version

static  version: String  

Version string for this class.


 

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