User Guide
130 Chapter 6: Components Dictionary
Alert.YES
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
Alert.YES
Description
Property (constant); a property with the constant hexadecimal value 0x1. 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 Yes button should be displayed in the
Alert window. When used as a value for the
defaultButton parameter, the Yes 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.
Example
The following example uses Alert.NO and Alert.YES as values for the flags parameter and
displays an Alert component with a No button and a Yes button:
import mx.controls.Alert;
Alert.show("This is a generic Alert window", "Alert Test", Alert.NO |
Alert.YES, this);
Alert.yesLabel
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
Alert.yesLabel
Description
Property (class); a class (static) property that indicates the label text on the Yes button.
Example
The following example sets the OK button’s label to “da”:
Alert.yesLabel = "da";