Example
The following example creates a radio button and assigns it a label of "Remove from list."
You first add a RadioButton component from the Components panel to the current
document's library, and then add the following code to Frame 1 of the main timeline.
/**
Requires:
- RadioButton component in library
*/
this.createClassObject(mx.controls.RadioButton, "my_rb", 10);
// Resize RadioButton component.
my_rb.setSize(200, my_rb.height);
my_rb.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.
The following are the four possible values:
The radio button is pinned to the upper left corner of the bounding area. The
"right"
label is placed to the right of the radio button.
The radio button is pinned to the upper right corner of the bounding area. The
"left"
label is placed to the left of the radio button.
The label is placed below the radio button. The radio button and label
"bottom"
grouping are centered horizontally and vertically. If the bounding box of the radio button
isn't large enough, the label is clipped.
1040 RadioButton component
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers