ActionScript 2.0 Components Language Reference |
|
|
|
| Alert component > Alert.buttonWidth | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
Alert.buttonWidth
Property (class); a class (static) property that changes the width of the buttons. The default value is 100.
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);
|
|
|
|