F > FRadioButton.setState |  |

FRadioButton.setState

FRadioButton, FRadioButton.setState, setState

Availability

Flash Player 6.

Usage

    myRadioButton.setState("select")

Parameters

`select` A Boolean value indicating whether the radio button is selected (`true`) or not (`false`).

Returns

Nothing.

Description

Method; specifies whether `myRadioButton` is selected (`true`) or unselected (`false`). Only one radio button in a group (all having the same Group Name parameter) can have an initial state of `true` (selected). If more than one radio button has `true` specified for this parameter, the last radio button with an initial state parameter of `true` is selected. The default value for this parameter is `false`.

Calling this method overrides the Initial State parameter value set during authoring. If you call this method and also call FRadioButton.setValue to select a radio button at runtime, and the radio buttons are different buttons in the same group, the radio button specified in the last method called is selected.

Example

The following code selects the radio button `radio1` at runtime.

    radio1.setState(true));

See also

`FRadioButton.getState`, `FRadioButton.getValue`, `FRadioButton.setValue`