F > FRadioButton (component) |
![]() ![]() ![]() |
FRadioButton (component)
Radio buttons are groups of selectable buttons from which only one button can be selected at a time. The RadioButton component in the Flash authoring environment provides drag-and-drop functionality for adding groups of radio buttons to Flash documents; it also provides a user interface for setting basic parameters. The methods of the FRadioButton component allow you to control radio buttons at runtime: you can create radio buttons, control radio buttons created in authoring, set or override basic parameters, and set additional runtime options. You do not need to use a constructor to access the methods of components.
The RadioButton component is supported by Flash Player 6 and later versions of the Flash Player.
Component methods do not perform error checking for type, as do other native ActionScript objects and actions; therefore, it is recommended that you validate parameters before passing them to methods.
For information on using the RadioButton component, setting parameters during authoring, and changing the color and appearance of components, see Customizing component colors and textand Customizing component skins in the Using Components chapter of Using Flash.
Method Description Returns a data value for a radio button instance. Returns Returns the radio button label as a string. Returns the selected state of a radio button instance. Returns the data value of the selected radio button in a group, or returns the label if no data is specified. Registers a skin element to a style property. Specifies a function to call when the radio button selection changes. Sets the data associated with a radio button instance. Determines whether the radio button is enabled or disabled. Specifies a group name for a radio button instance, or sets a new name for a group of radio buttons. Applies a label for the radio button at runtime. Specifies whether the label appears to the left or right of the radio button. Sets the width of the radio button, in pixels. Sets the selected state of radio button instance. Sets a single style property for a component instance. Selects a radio button in a radio button group at runtime.
Method summary for the FRadioButton component
true
if the radio button is enabled, false
if it is disabled.
![]() ![]() ![]() |