RadioButton.selection

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

radioButtonInstance.selection
radioButtonGroup.selection

Description

Property; behaves differently if 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)