Window.deletePopUp()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

windowInstance.deletePopUp();

Parameters

None.

Returns

Nothing.

Description

Method; deletes the window instance and removes the modal state. This method can only be called on window instances that were created by PopUpManager.createPopUp().

Example

The following code creates a modal window, then creates a listener that deletes the window with the close button is clicked:

var myTW = PopUpManager.createPopUp(_root, Window, true);
twListener = new Object();
twListener.click = function(){
  myTW.deletePopUp();
}
myTW.addEventListener("click", twListener);