User Guide

602 Chapter 6: Components Dictionary
Example
The following code creates a modal window when the button is clicked:
lo = new Object();
lo.click = function(){
mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, true);
}
button.addEventListener("click", lo);
PopUpManager.deletePopUp()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004 and Flash MX Professional 2004
Usage
windowInstance.deletePopUp();
Parameters
None.
Returns
Nothing.
Description
Method; deletes a pop-up window and removes the modal state. It is the responsibility of the
overlapped window to call
PopUpManager.deletePopUp() when the window is being destroyed.
Example
The following code creates a modal window named win with a close button, and deletes the
window when the close button is clicked:
import mx.managers.PopUpManager
import mx.containers.Window
win = PopUpManager.createPopUp(_root, Window, true, {closeButton:true});
lo = new Object();
lo.click = function(){
win.deletePopUp();
}
win.addEventListener("click", lo);