User Guide
1466 Window component
If you use the Popup Manager to add a Window component to a document, the Window
instance will have its own Focus Manager, distinct from the rest of the document. If you don’t
use the Popup Manager, the window’s contents participate in focus ordering with the other
components in the document. For more information about controlling focus, see
“FocusManager class” on page 721 or “Creating custom focus navigation” in Using
Components.
Components such as Loader, ScrollPane, and Window have events to determine when
content finishes loading. To set properties on the content of a Loader, ScrollPane, or Window,
add the property statement within a “complete” event handler, as shown in the following
example:
loadtest = new Object();
loadtest.complete = function(eventObject){
content_mc._width= 100;
}
my_window.addEventListener("complete", loadtest)
For more information, see “Window.complete” on page 1479.
Window parameters
You can set the following authoring parameters for each Window component instance in the
Property inspector or in the Component inspector (Window > Component Inspector
menu option):
closeButton indicates whether a close button is displayed (true) or not (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.
contentPath specifies the contents of the window. This can be the linkage identifier of the
movie clip or the symbol name of a screen, form, or slide that contains the contents of the
window. This can also be an absolute or relative URL for a SWF or JPEG file to load into the
window. The default value is
"". Loaded content is clipped to fit the window.
title indicates the title of the window.
NOTE
If a window was created by means other than PopUp Manager, you can’t close it.
NOTE
The minHeight and minWidth properties are used by internal sizing routines. They are
defined in UIObject, and are overridden by different components as needed. These
properties can be used if you make a custom layout manager for your application.
Otherwise, setting these properties in the Component inspector has no visible effect.