Fl.openscript(), Fl.outputpanel – Adobe Extending Flash Professional CS4 User Manual
Page 264
242
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
Example
The following example opens a file named Document.fla that is stored in the root directory on the C drive. The code
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.openScript()
Availability
Flash MX 2004.
Usage
fl.openScript(fileURI)
Parameters
fileURI
A string, expressed as a file:/// URI, that specifies the path of the JSFL, AS, ASC, XML, TXT, or other file that
should be loaded into the Flash text editor.
Returns
Nothing.
Description
Method; opens a script (JSFL, AS, ASC) or other file (XML, TXT) in the Flash text editor.
Example
The following example opens a file named my_test.jsfl that is stored in the /temp directory on the C drive:
fl.openScript("file:///c|/temp/my_test.jsfl");
fl.outputPanel
Availability
Flash MX 2004.
Usage
fl.outputPanel
Description
Read-only property; reference to the
.
Example
See