Extending Flash |
|
|
|
| Objects > Project object > project.findProjectItem() | |||
Flash 8.
project.findProjectItem(fileURI)
fileURI A string specifying the file to search for in the project, expressed as a file:/// URI.
A ProjectItem object for the item if successful; otherwise false. See ProjectItem object.
Method; searches for a specified file in the project.
The following example displays an error message in the Output panel if a specified file is not found in the project:
var myProject = fl.getProject();
var item = myProject.findProjectItem("file:///C|Projects/files/Integra.fla");
if (item == undefined) {
fl.trace("Integra.fla is missing!");
}
fl.getProject(), ProjectItem object, projectItem.isMissing
|
|
|
|