MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 83

Components language reference
Table of Contents

Advertisement

nonmodal_button.addEventListener("click", nonmodalListener);
function nonmodalListener(evt_obj:Object):Void {
var a:MovieClip = Alert.show("This is a nonmodal Alert window", "Alert
Test", Alert.OK | Alert.NONMODAL, this);
a.move(100, 100);
}
Alert.OK
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Alert.OK
Description
Property (constant); a property with the constant hexadecimal value 0x4. 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
OK 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
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);
or
parameter of the
defaultButton
parameter, this property indicates that an OK button should be
flags
and
Alert.OK
Alert.show()
defaultButton
as values for the
Alert.CANCEL
method. When
parameter, the
parameter
flags
Alert.OK
83

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