F > FRadioButton.setGroupName

 

FRadioButton.setGroupName

Availability

Flash Player 6.

Usage

myRadioButton.setGroupName(groupName)
myRadioButtonGroup.setGroupName(groupName)

Parameters

groupName A string specifying the name of a radio button group.

Returns

Nothing.

Description

Method; applies a group name to a radio button instance or group of radio buttons at runtime. Calling this method overrides the Group Name parameter value set during authoring.

Usage 1: Specifies myRadioButton as a member of the radio button group groupName.

Usage2: Specifies a new group name for all of the radio buttons in myRadioButtonGroup.

Example

Usage 1: The following code specifies Colors as the group name for the radio button instance radioRed.

radioRed.setGroupName("Colors");

Usage2: The following code specifies radioGroupToys as the new group name for all the radio buttons in radioGroupGames.

radioGroupGames.setGroupName("radioGroupToys");