Extending Flash |
|
|
|
| Objects > Document object > document.asVersion | |||
Flash CS3 Professional.
document.asVersion
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.
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;
}
document.as3Dialect, document.getPlayerVersion()
|
|
|
|