RadioButton.groupName

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

radioButtonInstance.groupName
radioButtonGroup.groupName

Description

Property; sets the group name for a radio button instance or group. You can use this property to get or set a group name for a radio button instance or a group name for a radio button group. Calling this method overrides the groupName parameter value set while authoring. The default value is "radioGroup".

Example

The following example sets the group name of a radio button instance to "colorChoice" and then changes the group name to "sizeChoice". To test this example, place a radio button on the Stage with the instance name myRadioButton and enter the following code on Frame 1:

myRadioButton.groupName = "colorChoice";
trace(myRadioButton.groupName);
colorChoice.groupName = "sizeChoice"; 
trace(colorChoice.groupName);