F > FRadioButton.setLabel

 

FRadioButton.setLabel

Availability

Flash Player 6.

Usage

myRadioButton.setLabel(label)

Parameters

label A text string specifying the label that appears to the right of the radio button.

Returns

Nothing.

Description

Method; applies a label to the radio button instance myRadioButton at runtime. Calling this method overrides the label parameter value specified in authoring. You cannot use this method to set labels for groups of radio buttons; the syntax radioButtonGroup.setLabel is not valid.

Example

The following code applies the label Brown eyes to radio1.

radio1.setLabel("Brown eyes");

See also

FRadioButton.getLabel