Document.xmlpanel(), Document.zoomfactor – Adobe Extending Flash Professional CS4 User Manual
Page 194
172
EXTENDING FLASH CS4 PROFESSIONAL
Document object
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
.
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
Description
Property; specifies the zoom percent of the Stage at authoring time. A value of 1 equals 100 percent zoom, 8 equals 800
percent, .5 equals 50 percent, and so on.
Example
The following example sets the zoom factor of the Stage to 200 percent.
fl.getDocumentDOM().zoomFactor = 2;