PopUpManager.deletePopUp()

Availability

Flash Player 6.0.79.

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 and 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);