F > FRadioButton.setValue

 

FRadioButton.setValue

Availability

Flash Player 6.

Usage

myRadioButtonGroup.setValue("data")

Parameters

data The data associated with the radio button to select.

Returns

Nothing.

Description

Method; selects the radio button associated with the specified data and deselects any currently selected button is the same group.

Calling this method overrides the Initial Value parameter value set during authoring. If you call this method and also call FRadioButton.setState 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 with the associated data red in the radio button group called Colors.

Colors.setValue("red");

See also

FRadioButton.getData, FRadioButton.getValue, FRadioButton.setState