|
|
fl.findDocumentIndex()
AvailabilityFlash
MX 2004.
Usagefl.findDocumentIndex(name)
Parameters- name
- The document name for which you want to find the index. The
document must be open.
ReturnsAn
array of integers that represent the position of the document name in
the fl.documents array.
DescriptionMethod;
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).
ExampleThe
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]);
|