User Guide
flash object 165
Description
Method; closes the specified document. See also fl.closeAll().
Example
The following example illustrates two ways of closing a document.
//closes the specified document and prompts to save changes
fl.closeDocument(fl.documents[0]);
fl.closeDocument(fl.documents[0] , true); //use of true is optional
//closes the specified document without prompting to save changes
fl.closeDocument(fl.documents[0], false);
fl.componentsPanel
Availability
Flash MX 2004.
Usage
fl.componentsPanel
Description
Read-only property; a componentsPanel object, which represents the Components panel.
Example
The following example stores a componentsPanel object in the comPanel variable.
var comPanel = fl.componentsPanel;
fl.configDirectory
Availability
Flash MX 2004.
Usage
fl.configDirectory
Description
Read-only property; a string that specifies the full path for the local user’s Configuration directory
in a platform-specific format. To specify this path in a URI format (
file:///), use
fl.configURI.
Example
The following example displays the Configuration directory in the Output panel.
fl.trace( "My local configuration directory is " + fl.configDirectory );