Window.closeButton

Availability

Flash Player 6.0.79.

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.

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

Window.click, PopUpManager.createPopUp()