Extending Flash |
|
|
|
| Objects > Document object > document.name | |||
Flash MX 2004.
document.name
Read-only property; a string that represents the name of a document (FLA file).
The following example sets the variable fileName to the filename of the first document in the documents array:
var fileName = flash.documents[0].name;
The following example displays the names of all the open documents in the Output panel:
var openDocs = fl.documents;
for(var i=0;i < openDocs.length; i++){
fl.trace(i + " " + openDocs[i].name +"\n");
}
|
|
|
|