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.

NOTE

If a window was created by means other than PopUp Manager, you can't close it.

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

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.

You can set the following additional parameters for each Window component instance in the Component inspector (Window > Component Inspector):

enabled is a Boolean value that indicates whether the component can receive focus and input. The default value is true.

visible is a Boolean value that indicates whether the object is visible (true) or not (false). The default value is true.

NOTE

For more information about the following five skin parameters, see Using skins with the Window component.

skinCloseDisabled determines the close button in its disabled state. The default value is CloseButtonDisabled.

skinCloseDown determines the close button in its down state. The default value is CloseButtonDown.

skinCloseOver determines the close button in its over state. The default value is CloseButtonOver.

skinCloseUp determines the close button in its up (default) state. The default value is CloseButtonUp.

skinTitleBackground determines the title bar appearance. The default value is TitleBackground.

titleStyleDeclaration assigns the name of the style declaration for the title text. The default value is undefined, which causes the title bar to have white, bold text. See Setting custom styles for groups of components in Using ActionScript 2.0 Components.

You can write ActionScript to control these and additional options for the Window component using its properties, methods, and events. For more information, see Window class.