Extending Flash |
|
|
|
| Objects > ProjectItem object > projectItem.displayName | |||
Flash 8.
projectItem.displayName
Read-only property; a string that specifies the name of a project item, such as "file.fla".
The following example displays the names of all the files in the project in the Output panel:
fl.trace( "These are all the files in the project: ");
var files = fl.getProject().items;
for (i = 0; i < files.length; i++) {
fl.trace(files[i].displayName + " ");
}
fl.getProject(), project.items, projectItem.itemURI
|
|
|
|