F > FRadioButton.setEnabled |
![]() ![]() ![]() |
FRadioButton.setEnabled
Availability
Flash Player 6.
Usage
myRadioButton
.setEnabled
(enable
)myRadioButtonGroup
.setEnabled
(enable
)
Parameters
enable
A Boolean value specifying whether an individual radio button or all the buttons in a group are enabled (true
) or disabled (false
).
Returns
Nothing.
Description
Method; enables and disables radio buttons at runtime.
Usage 1: Specifies whether myRadioButton
is enabled (true
) or disabled (false
).
Usage 2: Specifies whether all the radio buttons with the group name radioButtonGroup
are enabled (true
) or disabled (false
). Calling this method without passing a parameter is the same as passing the parameter true
.
Example
Usage 1: The following code disables the single radio button radio1
without disabling the other buttons in the group.
radio1.setEnabled
(false
);
Usage 2: The following code disables all the radio buttons in the group radioGroup1
.
radioGroup1.setEnabled
(false
);
See also
![]() ![]() ![]() |