RadioButton.selectedData

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

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);