Document.as3dialect, Document.as3exportframe – Adobe Extending Flash Professional CS4 User Manual
Page 97

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.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);