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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 270
249
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
function testFunct(num, minNum) {
fl.trace("in testFunct: 1st arg: " + num + " 2nd arg: " + minNum);
}
for (i=0; i<2; i++) {
fl.trace("in for loop i=" + i);
}
fl.trace("end of for loop");
// End of testScript.jsfl
If you issue the following command,
fl.runScript("file:///C|/testScript.jsfl", "testFunct", 10, 1);
the following information appears in the Output panel:
in for loop i=0
in for loop i=1
end of for loop
in testFunct: 1st arg: 10 2nd arg: 1
You can also just call testScript.jsfl without executing a function, as follows:
fl.runScript("file:///C|/testScript.jsfl");
This produces the following in the Output panel:
in for loop i=0
in for loop i=1
end of for loop
fl.saveAll()
Availability
Flash MX 2004.
Usage
fl.saveAll()
Parameters
None.
Returns
Nothing.
Description
Method; saves all open documents.
If a file has never been saved or has not been modified since the last time it was saved, the file isn’t saved. To allow an
unsaved or unmodified file to be saved, use
fl.saveDocumentAs().
Example
The following example saves all open documents that were saved previously and have been modified since the last time
they were saved:
Vista de página 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 559 560

Comentários a estes Manuais

Sem comentários