Button.labelPlacement

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

buttonInstance.labelPlacement

Description

Property; sets the position of the label in relation to the icon. The default value is "right". The following are the four possible values, the icon and label are always centered vertically and horizontally within the bounding area of the button:

Example

The following code sets the label to the left of the icon. The second line of the code sends the value of the labelPlacement property to the Output panel:

iconInstance.labelPlacement = "left"; 
trace(iconInstance.labelPlacement);