User Guide
flash object (fl) 233
fl.createNewTemplateList
Availability
Flash MX 2004.
Usage
fl.createNewTemplateList
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.createProject()
Availability
Flash 8.
Usage
fl.createProject( fileURI [ , name ] )
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the name of the Flash Project
(FLP) file to be created.
name An optional string that is displayed as the project name in the Project panel. If name is
omitted, the name of the FLP file (excluding path or extension) is displayed in the
Project panel.
Returns
A Project object if the method is successful; undefined if the file can’t be created (for
example,
fileURI contains a directory that doesn’t exist).