beautypg.com

Document.asversion, Document.autolabel – Adobe Extending Flash Professional CS5 User Manual

Page 98

background image

76

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

See also

document.as3StrictMode

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

document.getPlayerVersion()

; this

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.as3Dialect

,

document.getPlayerVersion()

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

This manual is related to the following products: