project.findProjectItem()

Availability

Flash 8.

Usage

project.findProjectItem(fileURI)

Parameters

fileURI A string specifying the file to search for in the project, expressed as a file:/// URI.

Returns

A ProjectItem object for the item if successful; otherwise false. See ProjectItem object.

Description

Method; searches for a specified file in the project.

Example

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!");
}

See also

fl.getProject(), ProjectItem object, projectItem.isMissing