Adobe Extending Flash Professional CS5 Manuale Utente Pagina 266

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 265
244
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
var doc = fl.openDocument("file:///c|/Document.fla");
fl.openScript()
Availability
Flash MX 2004. Optional parameters added in Flash Professional CS5.
Usage
fl.openScript(fileURI [, createExtension, className])
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. This paramater can be null. If null, this method opens a new script of the
type specified by the
createExtension parameter.
createExtension A string, used to determine what type of document to create if fileURI is null. Defaults to 'AS';
allowed values include 'JSFL', 'AS', 'ASC', 'XML', 'TXT', 'AS3_CLASS', or 'AS3_INTERFACE'. This parameter was
added in Flash Professional CS5.
className A string, used to specify the fully-qualified class name if a class or interface is being created (as determined
by the
createExtension parameter). This parameter was added in Flash Professional CS5.
Returns
Nothing.
Description
Method; opens an existing file or creates a new 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");
Example
The following example creates a new .as file that has a blank AS3 class definition:
fl.openScript(null, 'AS3_CLASS');
fl.outputPanel
Availability
Flash MX 2004.
Usage
fl.outputPanel
Vedere la pagina 265
1 2 ... 261 262 263 264 265 266 267 268 269 270 271 ... 564 565

Commenti su questo manuale

Nessun commento