Button.label

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

buttonInstance.label

Description

Property; specifies the text label for a button instance. By default, the label appears centered on the button. Calling this method overrides the label authoring parameter specified in the Property inspector or the Component Inspector panel. The default value is "Button".

Example

The following code sets the label to "Remove from list":

buttonInstance.label = "Remove from list"; 

See also

Button.labelPlacement