User Guide
634 Chapter 6: Components Dictionary
Usage
radioButtonGroup.selectedData
Description
Property; selects the radio button with the specified data value and deselects the previously
selected radio button. If the
data property is not specified for a selected instance, the label value
of the selected instance is selected and returned. The
selectedData property can be of any
data type.
Example
The following example selects the radio button with the value "#FF00FF" from the radio group
colorGroup and sends the value to the Output panel:
colorGroup.selectedData = "#FF00FF";
trace(colorGroup.selectedData);
RadioButton.selection
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
radioButtonInstance.selection
radioButtonGroup.selection
Description
Property; behaves differently depending on whether you get or set the property. If you get the
property, it returns the object reference of the currently selected radio button in a radio button
group. If you set the property, it selects the specified radio button (passed as an object reference)
in a radio button group and deselects the previously selected radio button.
Example
The following example selects the radio button with the instance name color1 and sends its
instance name to the Output panel:
colorGroup.selection = color1;
trace(colorGroup.selection._name)