Adobe Extending Flash Professional CS4 Manuale Utente Pagina 255

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 254
233
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
var originalDocID = fl.getDocumentDOM().id;
// other code here, maybe working in different files
var targetDoc = fl.findDocumentDOM(originalDocID);
// Set the height of the Stage in the original document to 400 pixels.
targetDoc.height = 400;
See also
fl.findDocumentIndex()
fl.findDocumentIndex()
Availability
Flash MX 2004.
Usage
fl.findDocumentIndex(name)
Parameters
name The document name for which you want to find the index. The document must be open.
Returns
An array of integers that represent the position of the document name in the fl.documents array.
Description
Method; returns an array of integers that represent the position of the document name in the fl.documents array.
More than one document with the same name can be open (if the documents are located in different folders).
Example
The following example displays information about the index position of any open files named test.fla in the Output
panel:
var filename = "test.fla"
var docIndex = fl.findDocumentIndex(filename);
for (var index in docIndex)
fl.trace(filename + " is open at index " + docIndex[index]);
See also
fl.documents, fl.findDocumentDOM()
fl.findObjectInDocByName()
Availability
Flash CS3 Professional.
Usage
fl.findObjectInDocByName(instanceName, document)
Vedere la pagina 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 559 560

Commenti su questo manuale

Nessun commento