PopUpManager.createPopUp()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004 and Flash MX Professional 2004.
Usage
PopUpManager.createPopUp(parent, class, modal [, initobj, outsideEvents])
Parameters
A reference to a window to pop-up over.
parent
A reference to the class of object you want to create.
class
A Boolean value indicating whether the window is modal (
modal
An object containing initialization properties. This parameter is optional.
initobj
A Boolean value indicating whether an event is triggered if the user clicks
outsideEvents
outside the window (
Returns
A reference to the object that was created.
If the
parameter is Window and a window component is in the library, the returned
class
reference is a Window.
Description
Method; if modal, a call to
parent and creates an instance of class. If nonmodal, a call to
instance of the class as a child of the parent window.
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);
988
PopUpManager class
) or not (
). This parameter is optional.
true
false
createPopUp()
finds the topmost parent window starting with
createPopUp()
) or not (
).
true
false
creates an
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers