ActionScript 2.0 Components Language Reference |
|
|
|
| Alert component > Alert.CANCEL | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
Alert.CANCEL
Property (constant); a property with the constant hexadecimal value 0x8. This property can be used for the flags or defaultButton parameter of the Alert.show() method. When used as a value for the flags parameter, this property indicates that a Cancel button should be displayed in the Alert window. When used as a value for the defaultButton parameter, the Cancel button has initial focus and is triggered when the user presses Enter (Windows) or Return (Macintosh). If the user tabs to another button, that button is triggered when the user presses Enter.
The following example uses Alert.CANCEL and Alert.OK as values for the flags parameter and displays an Alert component with an OK button and a Cancel button:
import mx.controls.Alert;
Alert.show("This is a generic Alert window", "Alert Test", Alert.OK | Alert.CANCEL, this);
|
|
|
|