Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 138

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 137
116
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
var profileXML=fl.getDocumentDOM().exportPublishProfileString('Default');
fl.trace(profileXML);
var newProfileXML = profileXML.replace("<ActionScriptVersion>3</ActionScriptVersion>",
"<ActionScriptVersion>1</ActionScriptVersion>");
fl.getDocumentDOM().importPublishProfileString(newProfileXML);
document.importSWF()
Availability
Flash MX 2004.
Usage
document.importSWF(fileURI)
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the file for the SWF file to import.
Returns
Nothing.
Description
Method; imports a SWF file into the document. This method performs the same operation as using the Import menu
command to specify a SWF file. In Flash 8 and later, you can also use
document.importFile() to import a SWF file
(as well as other types of files).
Example
The following example imports the "mySwf.swf" file from the Flash Configuration folder:
fl.getDocumentDOM().importSWF(fl.configURI+"mySwf.swf");
See also
document.importFile()
document.intersect()
Availability
Flash 8.
Usage
document.intersect()
Parameters
None.
Zobrazit stránku 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 564 565

Komentáře k této Příručce

Žádné komentáře