F > FRadioButton.setLabelPlacement |
FRadioButton.setLabelPlacement
FRadioButton, FRadioButton.setLabelPlacement, setLabelPlacement
Availability
Flash Player 6.
Usage
myRadioButton.setLabelPlacement(labelPosition)myRadioButtonGroup.setLabelPlacement(labelPosition)
Parameters
labelPosition A text string; specify "left" or "right".
Description
Method; specifies whether the label appears to the left or right of the radio button. Calling this method overrides the Label Placement parameter value set during authoring.
Usage 1: specifies the placement of the label for a single radio button.
Usage 2: specifies the placement of the labels for all the radio buttons in a group.
Example
Usage 1: The following code places the label for radio1 to the left of the radio button.
radio1.setLabelPlacement("left");
Usage 2: The following code places the labels for the radio buttons in the group Colors to the right of the buttons.
Colors.setLabelPlacement("right");
See also
FRadioButton.setLabel, FRadioButton.setLabelPlacement