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

  • 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 114
93
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Example
The following example specifies that the ActionScript 3.0 class associated with the document is
com.mycompany.ManagerClass, which is defined in com/mycompany/ManagerClass.as:
var myDocument = fl.getDocumentDOM();
// set the property
myDocument.docClass = "com.mycompany.ManagerClass";
// get the property
fl.outputPanel.trace("document.docClass has been set to " + myDocument.docClass);
See also
item.linkageBaseClass
document.documentHasData()
Availability
Flash MX 2004.
Usage
document.documentHasData(name)
Parameters
name A string that specifies the name of the data to check.
Returns
A Boolean value: true if the document has persistent data; false otherwise.
Description
Method; checks the document for persistent data with the specified name.
Example
The following example checks the document for persistent data with the name "myData":
var hasData = fl.getDocumentDOM().documentHasData("myData");
See also
document.addDataToDocument(), document.getDataFromDocument(),
document.removeDataFromDocument()
document.duplicatePublishProfile()
Availability
Flash MX 2004.
Usage
document.duplicatePublishProfile([profileName])
Zobrazit stránku 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 564 565

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

Žádné komentáře