Radiobutton.selected - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

The label is placed above the radio button. The radio button and label grouping
"top"
are centered horizontally and vertically. If the bounding box of the radio button isn't large
enough, the label is clipped.
Example
The following code creates three radio buttons and uses the
place the label for the second button on the left of the button.
You first drag 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
*/
import mx.controls.RadioButton;
this.createClassObject(RadioButton, "first_rb", 10, {label:"first",
groupName:"radioGroup"});
this.createClassObject(RadioButton, "second_rb", 20, {label:"second",
groupName:"radioGroup"});
this.createClassObject(RadioButton, "third_rb", 30, {label:"third",
groupName:"radioGroup"});
// Position radio buttons on Stage.
second_rb.move(0, first_rb.y + first_rb.height);
third_rb.move(0, second_rb.y + second_rb.height);
second_rb.labelPlacement = "left";

RadioButton.selected

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
radioButtonInstance.selected
radioButtonGroup.selected
property to
labelPlacement
RadioButton.selected
1041

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents