Alert.yes - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

The following code defines a click handler that sends a message to the Output panel about
which button was clicked. (You must have an Alert component in the library for this code to
display an alert; to add the component to the library, drag it to the Stage and then delete it):
import mx.controls.Alert;
// Define button actions.
var myClickHandler:Function = function (evt_obj:Object) {
if (evt_obj.detail == Alert.OK) {
trace(Alert.okLabel);
} else if (evt_obj.detail == Alert.CANCEL) {
trace(Alert.cancelLabel);
}
};
// Display dialog box.
var dialog_obj:Object = Alert.show("Test Alert", "Test", Alert.OK |
Alert.CANCEL, null, myClickHandler, "testIcon", Alert.OK);

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
used as a value for the
displayed in the Alert window. When used as a value for 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.
86
Alert component (Flash Professional only)
or
parameter of the
defaultButton
parameter, this property indicates that a Yes button should be
flags
method. When
Alert.show()
parameter, the
defaultButton

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents