mx.controls
Class SimpleButton


Direct Known Subclasses
           mx.controls.Button

class SimpleButton
extends mx.core.UIComponent

The 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"
/>



Methods

Methods inherited from class mx.core.UIComponent
getFocus  setFocus  getFocusManager 

Methods inherited from class mx.core.UIObject
createAccessibilityImplementation  measure  doLater  cancelAllDoLaters  invalidate  invalidateStyle  invalidateProperties  invalidateSize  redraw  move  setSize  setSizeNoLayout  drawRect  fillRect  destroyLabel  createClassObject  createEmptyObject  destroyObject  getStyle  setMask  swapDepths 


Properties
staticversion: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.

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

Properties inherited from class mx.core.UIObject
version  nestLevel  dispatchEvent  addEventListener  handleEvent  removeEventListener  kStretch  styleName  className  setStyle  parentApplication  isDocument  parentDocument  documentDescriptor  descriptor  instanceIndices  repeaterIndices  getRepeaterItem  id  width  height  x  y  minHeight  minWidth  preferredHeight  preferredWidth  maxHeight  maxWidth  widthFlex  heightFlex  visible  scaleX  scaleY  alpha  depth  mouseX  mouseY  toolTip  baselinePosition 


Effects

Effects inherited from class mx.core.UIComponent
showEffect  hideEffect  focusInEffect  focusOutEffect 

Effects inherited from class mx.core.UIObject
creationCompleteEffect  moveEffect  resizeEffect  mouseDownEffect  mouseOverEffect  mouseOutEffect  mouseUpEffect 


Events
buttonDownBroadcast 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.
buttonDragOutBroadcast 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.
clickHandler for click events. Target contains a reference to the component that triggered the event. Type contains the name of the event.

Events inherited from class: mx.core.UIComponent
focusIn  focusOut  keyDown  keyUp  show  hide  valid  invalid  valueCommitted 

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


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

Styles inherited from class mx.core.UIComponent
backgroundColor  backgroundDisabledColor  backgroundImage  backgroundAlpha  backgroundSize  barColor  borderCapColor  borderColor  buttonColor  borderStyle  disabledColor  errorColor  highlightColor  lineHeight  modalTransparency  scrollTrackColor  shadowColor  shadowCapColor  symbolColor  symbolBackgroundColor  symbolBackgroundDisabledColor  symbolBackgroundPressedColor  symbolDisabledColor  themeColor 

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


Property Detail

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.