User Guide
168 Chapter 3: Objects
Description
Read-only property; an array of strings that represent the various types of templates that can be
created.
Example
The following example displays the types of templates that can be created in the Output panel.
fl.trace("Number of template types: " + fl.createNewTemplateList.length); for
(i = 0; i < fl.createNewTemplateList.length; i++) fl.trace("type: " +
fl.createNewTemplateList[i]);
fl.documents
Availability
Flash MX 2004.
Usage
fl.documents
Description
Read-only property; an array of Document objects 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);
}
fl.drawingLayer
Availability
Flash MX 2004.
Usage
fl.drawingLayer
Description
Read-only property; the drawingLayer object that an extensible tool should use when the user
wants to temporarily draw while dragging (for example, when creating a selection marquee).
Example
See drawingLayer.setColor().