Using Components > The RadioButton component > RadioButton parameters

 

RadioButton parameters

You can set the following parameters for each radio button instance in your Flash document using the Parameters tab on the Property inspector or the Component Parameters panel.

Change Handler is the name of the function that you want to execute when the user selects one of the radio buttons in a group. This function must be defined in the same Timeline as the radio button instances in the group. This parameter is optional and needs to be specified only if you want an action to take place as soon as the user selects a radio button. For more information, see Writing change handler functions for components and the entry in the ActionScript Dictionary.

Data is the data associated with the radio button label. There is no default setting for this parameter.

Group Name specifies the radio button as one of a group of radio buttons.

Initial State specifies whether the radio button is initially selected (true), or clear (false). Only one radio button in a group (all having the same Group Name parameter) can have an initial state of true (selected). If more than one radio button instance has true specified for this parameter, the last radio button instance with an initial state parameter of true is selected. The default value for this parameter is false.

Label is the name of the radio button. By default the label is set to the right.

Label Placement specifies whether the label appears to the left or the right of the radio button. By default, the label is displayed to the right of the check box.

You can set additional options and functionality for radio button instances and groups using the methods of the FRadioButton (component) in the online ActionScript Dictionary in the Help menu.