Fl.externallibrarypath – Adobe Extending Flash Professional CS5 User Manual
Page 253
231
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Parameters
ucfURI
A string that specifies the file Uniform Resource Identifier (URI) from which to export the publish settings.
profileName
A string that specifies the profile name to export. This parameter is optional.
Returns
String.
Description
Returns a specific document’s publishing profile without having to open the file. The publish profile can also be
specified, but this is optional.
Example
The following example reads the publishing profile string:
var ppXML = "";
var ucfURI = fl.browseForFileURL("open", "select a FLA");
if (ucfURI && ucfURI.length > 0)
ppXML = fl.exportPublishProfileString(ucfURI);
fl.trace(ppXML);
fl.externalLibraryPath
Availability
Flash CS4 Professional.
Usage
fl.externalLibraryPath
Description
Property; a string that contains a list of items in the global ActionScript 3.0 External library path, which specifies the
location of SWC files used as runtime shared libraries. Items in the string are delimited by semi-colons. In the
authoring tool, the items are specified by choosing Edit > Preferences
> ActionScript > ActionScript 3.0 Settings.
Example
The following example adds the /SWC_runtime folder to the global ActionScript 3.0 External library path:
fl.trace(fl.externalLibraryPath);
fl.externalLibraryPath = "/SWC_runtime;" + fl.externalLibraryPath;
fl.trace(fl.externalLibraryPath);
See also