Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > PopUpManager class > PopUpManager.deletePopUp() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004 and Flash MX Professional 2004
windowInstance.deletePopUp();
None.
Nothing.
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.
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);
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00003355.html