Adobe Extending Flash Professional CS4 Manuale Utente Pagina 132

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 131
110
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Example
The following example displays the XML settings string for the current document:
fl.trace(fl.getDocumentDOM().getMobileSettings());
//traces a string like the following"<? xml version="1.0" encoding="UTF-16" standalone="no"
?><mobileSettings> <contentType id="standalonePlayer" name="Standalone Player"/>
<testDevices> <testDevice id="1170" name="Generic Phone" selected="yes"/> </testDevices>
<outputMsgFiltering info="no" trace="yes" warning="yes"/> <testWindowState height="496"
splitterClosed="No" splitterXPos="400" width="907"/> </mobileSettings>"
See also
document.setMobileSettings()
document.getPlayerVersion()
Availability
Flash CS3 Professional.
Usage
document.getPlayerVersion()
Parameters
None.
Returns
A string that represents the Flash Player version specified by using document.setPlayerVersion(). If no value has
been set, returns the value specified in the Publish Settings dialog box.
Description
Method; returns a string that represents the targeted player version for the specified document. For a list of values that
this method can return, see
document.setPlayerVersion().
To determine which version of ActionScript is being targeted in the specified file, use document.asVersion.
Example
The following example illustrates targeting specified player versions for the current document and then retrieving
those values:
fl.getDocumentDOM().setPlayerVersion("6");
var version = fl.getDocumentDOM().getPlayerVersion();
fl.trace(version) // displays "6"
fl.getDocumentDOM().setPlayerVersion("FlashPlayer10");
var version = fl.getDocumentDOM().getPlayerVersion();
fl.trace(version) // displays ""FlashPlayer10""
See also
document.setPlayerVersion()
Vedere la pagina 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 559 560

Commenti su questo manuale

Nessun commento