Adobe Extending Flash Professional CS4 Manual do Utilizador Página 194

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 193
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 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
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;
Vista de página 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 559 560

Comentários a estes Manuais

Sem comentários