User Guide
234 Objects
Description
Method; creates a Flash Project (FLP) file with the specified name. If the file can’t be created,
an informational dialog box is displayed. If the file already exists, a dialog box is displayed
asking whether to overwrite the file.
Example
The following example creates a project file in the specified directory (if it exists) and specifies
a name to display in the Project panel.
var myProject = fl.createProject("file:///C|/Projects/
MasterProject_2005.flp", "Master Project");
See also
fl.getProject(), fl.openProject(), Project object
fl.documents
Availability
Flash MX 2004.
Usage
fl.documents
Description
Read-only property; an array of Document objects (see Document object) that represent the
documents (FLA files) that are currently open for editing.
Example
The following example stores an array of open documents in the docs variable.
var docs = fl.documents;
The following example displays the names of currently open documents in the Output panel.
for (doc in fl.documents) {
fl.trace(fl.documents[doc].name);
}