FlexButton Class

Description

The Button control is a commonly used rectangular button. Button controls look like they can be pressed. They can have a text label, an icon, or both on their face.

Buttons typically use event listeners to perform an action when the user selects the control. When a user clicks the mouse on a Button control, and the Button control is enabled, it dispatches a click event and a buttonDown event. A button always dispatches events such as the mouseMove, mouseOver, mouseOut, rollOver, rollOut, mouseDown, and mouseUp events whether enabled or disabled.

You can customize the look of a Button control and change its functionality from a push button to a toggle button. You can change the button appearance by using a skin for each of the button's states.

The label of a Button control uses a bold typeface. If you embed a font that you want to use for the label of the Button control, you must embed the bold typeface.

Availability

This class is supported only on the Open Agent.

Inheritance

FlexButton is derived from the FlexObject class.The following classes derive from the FlexButton class:
  • FlexCheckBox
  • FlexPopUpButton
  • FlexRadioButton

Methods

In addition to the methods it inherits from FlexObject, FlexDisplayObject, and AnyWin, FlexButton has the following methods:

Properties

In addition to the properties it inherits from FlexObject, FlexDisplayObject, and AnyWin, FlexButton has the following properties: