Alert.buttonWidth

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

Alert.buttonWidth

Description

Property (class); a class (static) property that changes the width of the buttons. The default value is 100.

Example

With an Alert component already in the library, add this ActionScript to the first frame of the main timeline to resize the buttons:

import mx.controls.Alert;

// Adjust button sizes.
Alert.buttonHeight = 50;
Alert.buttonWidth = 150;

// Show alert dialog box.
Alert.show("Launch Stock Application?", "Stock Price Alert", Alert.OK | Alert.CANCEL);

See also

Alert.buttonHeight