![]() ![]() | |
Flash Player 6.0.79.
Flash MX 2004 and Flash MX Professional 2004
PopUpManager.createPopUp(parent, class, modal [, initobj, outsideEvents])
parent A reference to a window to pop-up over.
class A reference to the class of object you want to create.
modal A Boolean value indicating whether the window is modal (true) or not (false).
initobj An object containing initialization properties. This parameter is optional.
outsideEvents A Boolean value indicating whether an event is triggered if the user clicks outside the window (true) or not (false). This parameter is optional.
A reference to the window that was created.
Method; if modal, a call to createPopUp() finds the topmost parent window starting with parent and creates an instance of class. If non-modal, a call to createPopUp() creates an instance of the class as a child of the parent window.
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);
![]() ![]() | |