134
Chapter 3: Objects
document.width
Availability
Flash MX 2004.
Usage
document.width
Description
Property; an integer that specifies the width of the document (Stage) in pixels. See
document.height
.
Example
The following example sets the width of the Stage to 400 pixels.
fl.getDocumentDOM().width= 400;
document.xmlPanel()
Availability
Flash MX 2004.
Usage
document.xmlPanel(
fileURI
)
Parameters
fileURI
A string that specifies the path, expressed as a file://URL, 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 a 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.con "Commands/Test.xml");
for (var prop in obj) {
fl.trace("property " + prop + " = " + obj[prop]);
}
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...