Field Summary |
public
| addEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
public
| closeHandler: Function |
| Can be used to assign a direct event handler to the component instance.
|
|
public
| removeEventListener: Function |
| See the EventDispatcher Class in Flash Help
|
|
|
Property Summary |
public
| html: Boolean (write)
|
| If true, message may contain html tags (limited to those that Flash handles).
|
|
public
| html: Boolean (read)
|
| Gets the html mode of the component.
|
|
public
| message: String (write)
|
| Sets the message displayed in the alert box. This is usually set as a parameter in the create function, but can also be set or changed here.
var myAlert:Alert = com.bjc.controls.Alert.create(_root, 1000, "I'm thinking...", "This is an alert.");
myAlert.message = "Warning, you can't do that!";
|
|
public
| message: String (read)
|
| Gets the message displayed in the alert box.
myVar = myAlert.message;
|
|
public
| title: String (write)
|
| Sets the title displayed in the alert window title bar. This is usually set as a parameter in the create function, but can also be set or changed here.
var myAlert:Alert = com.bjc.controls.Alert.create(_root, 1000, "Warning, you can't do that!", "I'm thinking...");
myAlert.title = "This is an alert.";
|
|
public
| title: String (read)
|
| Gets the title displayed in the alert window title bar.
myVar = myAlert.title = "This is an alert.";
|
|
|
|
Constructor |
public
| Alert (
Void)
|
|
|
|
Method Summary |
public static
| create (
target: MovieClip, depth: Number, message: String, title: String, initObj: Object
): Alert |
| Static method used to pop up an alert. Note, you must have the Alert component in the library of the movie that calls this function.
|
|
|
|