RadioButton parameters

You can set the following authoring parameters for each RadioButton component instance in the Property inspector or in the Component inspector:

data is the value associated with the radio button. There is no default value.

groupName is the group name of the radio button. The default value is radioGroup.

label sets the value of the text on the button. The default value is Radio Button.

labelPlacement orients the label text on the button. This parameter can be one of four values: left, right, top, or bottom. The default value is right. For more information, see RadioButton.labelPlacement.

selected sets the initial value of the radio button to selected (true) or unselected (false). A selected radio button displays a dot inside it. Only one radio button in a group can have a selected value of true. If more than one radio button in a group is set to true, the radio button that is instantiated last is selected. The default value is false.

You can write ActionScript to set additional options for RadioButton instances using the methods, properties, and events of the RadioButton class. For more information, see RadioButton class.