Document.asversion, Document.autolabel – Adobe Extending Flash Professional CS4 User Manual
Page 99
77
EXTENDING FLASH CS4 PROFESSIONAL
Document object
See also
document.asVersion
Availability
Flash CS3 Professional.
Usage
document.asVersion
Description
Property; an integer that specifies which version of ActionScript is being used in the specified document. Acceptable
values are 1, 2, and 3.
To determine the targeted player version for the specified document, use
method returns a string, so it can be used by Flash® Lite™ players.
Example
The following example sets the version of ActionScript in the current document to ActionScript 2.0 if it is currently
set as ActionScript 1.0.
if(fl.getDocumentDOM().asVersion == 1){
fl.getDocumentDOM().asVersion = 2;
}
See also
,
document.autoLabel
Availability
Flash MX 2004.
Usage
document.autoLabel
Description
Property; a Boolean value that is equivalent to the Auto Label check box in the Accessibility panel. You can use this
property to tell Flash to automatically label objects on the Stage with the text associated with them.
Example
The following example gets the value of the
autoLabel
property and displays the result in the Output panel:
var isAutoLabel = fl.getDocumentDOM().autoLabel;
fl.trace(isAutoLabel);