User Guide
RadioButton component 631
}
radioGroup.addEventListener("click", form);
The following code also sends a message to the Output panel when radioButtonInstance
is clicked. The
on() handler must be attached directly to radioButtonInstance.
on(click){
trace("radio button component was clicked");
}
RadioButton.data
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
radioButtonInstance.data
Description
Property; specifies the data to associate with a RadioButton instance. Setting this property
overrides the data parameter value set during authoring. The
data property can be of any data
type.
Example
The following example assigns the data value "#FF00FF" to the radioOne radio button instance:
radioOne.data = "#FF00FF";
RadioButton.groupName
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
radioButtonInstance.groupName
radioButtonGroup.groupName
Description
Property; sets the group name for a radio button instance or group. You can use this property to
get or set a group name for a radio button instance or for a radio button group. Calling this
method overrides the groupName parameter value set during authoring. The default value is
"radioGroup".