Adobe Extending Flash Professional CS4 Manuale Utente Pagina 97

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 96
75
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Example
The following example specifies that instances placed on the Stage in the current document must be manually added
to user-defined timeline classes.
fl.getDocumentDOM().as3AutoDeclare=false;
document.as3Dialect
Availability
Flash CS3 Professional.
Usage
document.as3Dialect
Description
Property; a string that describes the ActionScript 3.0 “dialect” being used in the specified document. The default value
is
"AS3"
. If you wish to allow prototype classes, as permitted in earlier ECMAScript specifications, set this value to
"ES"
.
Example
The following example specifies that the dialect being used in the current document is ECMAScript:
fl.getDocumentDOM().as3Dialect="ES";
See also
document.asVersion
document.as3ExportFrame
Availability
Flash CS3 Professional.
Usage
document.as3ExportFrame
Description
Property; an integer that specifies in which frame to export ActionScript 3.0 classes. By default, classes are exported in
Frame 1.
Example
The following example changes the frame in which classes are exported from 1 (the default) to 5.
var myDocument = fl.getDocumentDOM();
fl.outputPanel.trace("'Export classes in frame:' value before modification is " +
myDocument.as3ExportFrame);
myDocument.as3ExportFrame = 5;
fl.outputPanel.trace("'Export classes in frame:' value after modification is " +
myDocument.as3ExportFrame);
Vedere la pagina 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 559 560

Commenti su questo manuale

Nessun commento