Packageorg.apache.flex.html
Classpublic class Button
InheritanceButton Inheritance UIButtonBase Inheritance flash.display.SimpleButton
Implements IStrand, IEventDispatcher, IUIBase
Subclasses Button, CloseButton, DropDownList, ImageButton, TextButton, TextButton

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The Button class is a simple button. Use TextButton for buttons that should show text. This is the lightest weight button used for non-text buttons like the arrow buttons in a Scrollbar or NumericStepper. The most common view for this button is CSSButtonView that allows you to specify a backgroundImage in CSS that defines the look of the button. However, when used in ScrollBar and when composed in many other components, it is more common to assign a custom view to the button.



Public Properties
 PropertyDefined By
 Inherited$height : Number
[read-only] Retrieve the low-level bounding box height.
UIButtonBase
 Inherited$width : Number
[read-only] Retrieve the low-level bounding box width.
UIButtonBase
 Inheritedbeads : Array
The array property that is used to add additional beads to an MXML tag.
UIButtonBase
 InheritedclassName : String
The classname.
UIButtonBase
 Inheritedelement : IFlexJSElement
[read-only] Each IUIBase has an element that is actually added to the platform's display list DOM.
UIButtonBase
 InheritedexplicitHeight : Number
The explicitly set width (as opposed to measured width or percentage width).
UIButtonBase
 InheritedexplicitWidth : Number
The explicitly set width (as opposed to measured width or percentage width).
UIButtonBase
 Inheritedheight : Number
[override] The width of the component.
UIButtonBase
 Inheritedid : String
An id property for MXML documents.
UIButtonBase
 InheritedmeasurementBead : IMeasurementBead
[read-only] A measurement bead, if one exists.
UIButtonBase
 Inheritedmodel : Object
An IBeadModel that serves as the data model for the component.
UIButtonBase
 InheritedpercentHeight : Number
The requested percentage height this component should have in the parent container.
UIButtonBase
 InheritedpercentWidth : Number
The requested percentage width this component should have in the parent container.
UIButtonBase
 Inheritedstyle : Object
The object that contains "styles" and other associated name-value pairs.
UIButtonBase
 InheritedstyleString : String
[write-only] The styles for this object formatted as an HTML style attribute.
UIButtonBase
 InheritedtopMostEventDispatcher : IEventDispatcher
[read-only] The top most event dispatcher.
UIButtonBase
 InheritedtypeNames : String
A list of type names.
UIButtonBase
 Inheritedview : IBeadView
An IBeadView that serves as the view for the component.
UIButtonBase
 Inheritedwidth : Number
[override] The width of the component.
UIButtonBase
Protected Properties
 PropertyDefined By
 Inherited$y : Number
[read-only] Retrieve the low-level bounding box y.
UIButtonBase
Public Methods
 MethodDefined By
  
Constructor.
Button
 Inherited
addBead(bead:IBead):void
Add a bead to the strand.
UIButtonBase
 Inherited
UIButtonBase
 Inherited
getBeadByType(classOrInterface:Class):IBead
Find a bead on the strand.
UIButtonBase
 Inherited
UIButtonBase
 Inherited
UIButtonBase
 Inherited
Remove a bead from the strand.
UIButtonBase
 Inherited
setHeight(value:Number, noEvent:Boolean = false):void
UIButtonBase
 Inherited
setWidth(value:Number, noEvent:Boolean = false):void
UIButtonBase
 Inherited
setWidthAndHeight(newWidth:Number, newHeight:Number, noEvent:Boolean = false):void
UIButtonBase
 Inherited
setX(value:Number):void
UIButtonBase
 Inherited
setY(value:Number):void
UIButtonBase
Events
 Event Summary Defined By
  Dispatched when the user clicks on a button.Button
Constructor Detail
Button()Constructor
public function Button()

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Constructor.

Event Detail
click Event
Event Object Type: org.apache.flex.events.MouseEvent

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Dispatched when the user clicks on a button.