User Guide
174 Chapter 3: Objects
Example
The following example opens a file named Document.fla that is stored in the root directory of
the C drive, stores a Document object representing that document in the
doc variable, and sets
the document to be the currently selected document. That is, until focus is changed,
fl.getDocumentDOM() refers to this document.
var doc = fl.openDocument("file:///c|/Document.fla");
fl.openProject()
Availability
Flash MX 2004.
Usage
fl.openProject( fileURI )
Parameters
fileURI
A string that specifies the path of the Flash project file to open, expressed as a URI
(file:///URI).
Returns
Nothing.
Description
Method; opens a Flash Project (FLP) file in the authoring tool for editing.
Example
The following example opens a project file named myProjectFile.flp that is stored in the root
directory of the C drive.
fl.openProject("file:///c|/myProjectFile.flp");
fl.openScript()
Availability
Flash MX 2004.
Usage
fl.openScript( fileURI )
Parameters
fileURI
A string that specifies the path of the JSFL, AS, ASC, XML, TXT or other file that
should be loaded into the Flash text editor, expressed as a URI (file:///URI).
Returns
Nothing.