User Guide
888 Chapter 6: Components Dictionary
Window.closeButton
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
windowInstance.closeButton
Description
Property; a Boolean value that indicates whether the title bar should have a close button (true) or
not (
false). This property must be set in the initObject parameter of the
PopUpManager.createPopUp() method. The default value is false.
Clicking the close button broadcasts a
click event, but doesn’t close the window. You must write
a handler that calls
Window.deletePopUp() to explicitly close the window. For more information
about the
click event, see Window.click.
Example
The following code creates a window that displays the content in the movie clip “LoginForm” and
has a close button on the title bar:
var myTW = PopUpManager.createPopUp(_root, Window, true,
{contentPath:"LoginForm", closeButton:true});
See also
PopUpManager.createPopUp()
, Window.click
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.