F > FPushButton.setLabel |  |

FPushButton.setLabel

FPushButton, FPushButton.setLabel, setLabel

Availability

Flash Player 6.

Usage

    myPushButton.setLabel(label)

Parameters

`label` A string containing the text to appear on the push button.

Returns

Nothing.

Description

Method; applies a text label to the push button at runtime. Calling this method overrides the `label` parameter value specified in authoring.

Example

The following code applies the label `Cleveland Rocks!` to `voteButton`.

    voteButton.setLabel("Cleveland Rocks!");

See also

`FPushButton.getLabel`