Fl.languagecode, Fl.librarypath – Adobe Extending Flash Professional CS5 User Manual
Page 262
240
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Example
The following code displays “true” in the Output panel if the Times font is installed.
fl.trace(fl.isFontInstalled("Times"));
fl.languageCode
Availability
Flash CS5 Professional.
Usage
fl.languageCode
Description
Property; a string that returns the five character code identifying the locale of the application’s user interface.
Example
The following example returns the five character langauge code indicated by the Flash application’s localized user
interface:
locConfigURI = fl.applicationURI + fl.languageCode + "/Configuration";
fl.libraryPath
Availability
Flash CS4 Professional.
Usage
fl.libraryPath
Description
Property; a string that contains a list of items in the global ActionScript 3.0 Library path, which specifies the location
of SWC files or folders containing SWC files. 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 folder to the global ActionScript 3.0 Library path:
fl.trace(fl.libraryPath);
fl.libraryPath = "/SWC;" + fl.libraryPath;
fl.trace(fl.libraryPath);
See also
,