Clicking the close button broadcasts a
write a handler that calls
information about the
Example
The following example creates a pop-up window and sets the
close button to it. You drag a Window component from the Components panel to the current
document's library, and then add the following code to Frame 1:
/**
Requires:
- Window component in library
*/
import mx.managers.PopUpManager;
import mx.containers.Window;
System.security.allowDomain("http://www.flash-mx.com");
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
{closeButton:true, contentPath:"http://www.flash-mx.com/images/
image1.jpg"});
See also
PopUpManager.createPopUp()
Window.complete
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
listenerObject = new Object();
listenerObject.complete = function(eventObject){
...
}
windowInstance.addEventListener("complete", listenerObject)
Description
Event; broadcast to all registered listeners when a window is created. Use this event to size a
window to fit its contents.
click
Window.deletePopUp()
event, see
click
Window.click
,
Window.click
event, but doesn't close the window. You must
to explicitly close the window. For more
.
closeButton
property to add a
Window.complete
1479
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?