Fl.createnewdoclisttype, Fl.createnewtemplatelist – Adobe Extending Flash Professional CS5 User Manual
Page 251
229
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Example
The following example displays the types of documents that can be created, in the Output panel:
fl.trace("Number of choices " + fl.createNewDocList.length);
for (i = 0; i < fl.createNewDocList.length; i++)
fl.trace("choice: " + fl.createNewDocList[i]);
fl.createNewDocListType
Availability
Flash MX 2004.
Usage
fl.createNewDocListType
Description
Read-only property; an array of strings that represent the file extensions of the types of documents that can be created.
The entries in the array correspond directly (by index) to the entries in the
array.
Example
The following example displays the extensions of the types of documents that can be created, in the Output panel:
fl.trace("Number of types " + fl.createNewDocListType.length);
for (i = 0; i < fl.createNewDocListType.length; i++) fl.trace("type: " +
fl.createNewDocListType[i]);
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]);