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

  • 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 191
170
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
Example
The following example sets the width of the Stage to 400 pixels.
fl.getDocumentDOM().width= 400;
See also
document.height
document.xmlPanel()
Availability
Flash MX 2004.
Usage
document.xmlPanel(fileURI)
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the path to the XML file defining the controls in the panel.
The full path is required.
Returns
An object that has properties defined for all controls defined in the XML file. All properties are returned as strings. The
returned object will have one predefined property named
"dismiss" that will have the string value "accept" or
"cancel".
Description
Method; posts an XMLUI dialog box. See fl.xmlui.
Example
The following example loads the Test.xml file and displays each property contained within it:
var obj = fl.getDocumentDOM().xmlPanel(fl.configURI + "Commands/Test.xml");
for (var prop in obj) {
fl.trace("property " + prop + " = " + obj[prop]);
}
document.zoomFactor
Availability
Flash 8.
Usage
document.zoomFactor
Zobrazit stránku 191
1 2 ... 187 188 189 190 191 192 193 194 195 196 197 ... 564 565

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

Žádné komentáře