User Guide
128 Chapter 6: Components Dictionary
Alert.okLabel
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
Alert.okLabel
Description
Property (class); a class (static) property that indicates the label text on the OK button.
Example
The following example sets the OK button’s label to “okay”:
Alert.okLabel = "okay";
Alert.show()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
Alert.show(message[, title[, flags[, parent[, clickHandler[, icon[,
defaultButton]]]]]])
Parameters
message
The message to display.
title The text in the Alert title bar. This parameter is optional; if you omit it, the title bar is
blank.
flags An optional parameter that indicates the buttons to display in the Alert window. The
default value is
Alert.OK, which displays an OK button. When you use more than one value,
separate the values with a
| character. Use one or more of the following values: Alert.OK,
Alert.CANCEL, Alert.YES, Alert.NO.
You can also use
Alert.NONMODAL to indicate that the Alert window is nonmodal. A nonmodal
window allows a user to interact with other windows in the application.
parent The parent window for the Alert component. The Alert window centers itself in the
parent window. Use the value
null or undefined to specify the _root Timeline. The parent
window must inherit from the UIComponent class. You can register the parent window with
mx.core.View to cause it to inherit from UIComponent. This parameter is optional.