User Guide
632 Chapter 6: Components Dictionary
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,
name the instance name
myRadioButton, and enter the following code on Frame 1:
myRadioButton.groupName = "colorChoice";
trace(myRadioButton.groupName);
colorChoice.groupName = "sizeChoice";
trace(colorChoice.groupName);
RadioButton.label
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
radioButtonInstance.label
Description
Property; specifies the text label for the radio button. By default, the label appears to the right of
the radio button. Calling this method overrides the label parameter specified during authoring. If
the label text is too long to fit within the bounding box of the component, the text is clipped.
Example
The following example sets the label property of the instance radioButton:
radioButton.label = "Remove from list";
RadioButton.labelPlacement
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
radioButtonInstance.labelPlacement
radioButtonGroup.labelPlacement
Description
Property; a string that indicates the position of the label in relation to a radio button. You can set
this property for an individual instance or for a radio button group. If you set the property for a
group, the label is placed in the appropriate position for each radio button in the group.