Adobe Extending Flash Professional CS5 Manuale Utente Pagina 98

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 97
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);
Vedere la pagina 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 564 565

Commenti su questo manuale

Nessun commento