User Guide

166 Chapter 3: Objects
fl.configURI
Availability
Flash MX 2004.
Usage
fl.configURI
Description
Read-only property; a string that specifies the full path for the local user’s Configuration directory
in a URI format (
file:///). See also fl.configDirectory.
Example
The following example runs a specified script. Using fl.configURI lets you specify the location
of the script without knowing which platform the script is running on.
// to run a command in your commands menu change "Test.Jsfl"
// to the command you wish to run in the line below
fl.runScript( fl.configURI + "Commands/Test.jsfl" );
fl.createDocument()
Availability
Flash MX 2004.
Usage
fl.createDocument( [docType] )
Parameters
docType
A string that specifies the type of document to create. Valid values are "timeline",
"presentation", and "application". The default value is "timeline". This parameter is
optional.
Returns
If successful, returns the Document object for the newly created document. If an error occurs, the
value is
undefined.
Description
Method; opens a new document and selects it. Values for size, resolution, and color are the same
as the current defaults.
Example
The following example creates different types of documents.
//create a Timeline-based Flash Document
fl.createDocument();
fl.createDocument("timeline");
//create a Slide Presentation document
fl.createDocument("presentation");