User Guide

RadioButton class 1029
RadioButton class
Inheritance MovieClip > UIObject class > UIComponent class > SimpleButton class >
Button component > RadioButton
ActionScript Package Name mx.controls.RadioButton
The properties of the RadioButton class allow you at runtime to create a text label and
position it in relation to the radio button. You can also assign data values to radio buttons,
assign them to groups, and select them based on data value or instance name.
Setting a property of the RadioButton class with ActionScript overrides the parameter of the
same name set in the Property inspector or Component inspector.
The RadioButton component uses the Focus Manager to override the default Flash Player
focus rectangle and draw a custom focus rectangle with rounded corners. For information
about creating focus navigation, see “Creating custom focus navigation” in Using Components.
Each component class has a
version property, which is a class property. Class properties are
available only on the class itself. The
version property returns a string that indicates the
version of the component. To access this property, use the following code:
trace(mx.controls.RadioButton.version);
Method summary for the RadioButton class
There are no methods exclusive to the RadioButton class.
Methods inherited from the UIObject class
The following table lists the methods the RadioButton class inherits from the UIObject class.
When calling these methods from the RadioButton object, use the form
RadioButtonInstance.methodName.
NOTE
The code trace(myRadioButtonInstance.version); returns undefined.
Method Description
UIObject.createClassObject() Creates an object on the specified class.
UIObject.createObject() Creates a subobject on an object.
UIObject.destroyObject() Destroys a component instance.
UIObject.doLater() Calls a function when parameters have been set in the
Property and Component inspectors.