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
Example
The following code creates a modal window named
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);
602
Chapter 6: Components Dictionary
PopUpManager.deletePopUp()
when the window is being destroyed.
with a close button, and deletes the
win
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers