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");