Adobe Extending Flash Professional CS5 Manual de usuario Pagina 262

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 261
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
fl.externalLibraryPath,fl.flexSDKPath, fl.sourcePath, document.libraryPath
Vista de pagina 261
1 2 ... 257 258 259 260 261 262 263 264 265 266 267 ... 564 565

Comentarios a estos manuales

Sin comentarios