User Guide

ProjectItem object 365
projectItem.test()
Availability
Flash 8.
Usage
projectItem.test()
Parameters
None.
Returns
A Boolean value that indicates whether the item was successfully tested or not.
Descriptionn
Method; tests a project item. If the test operation fails because the item is not a FLA or
HTML file, this method returns
false.
Example
The following example tests all the FLA and HTML files in the project:
for (var i in fl.getProject().items) {
var item = fl.getProject().items[i];
if (item.canTest()) {
item.test();
}
}
See also
fl.getProject(), project.canTestProject(), project.items,
projectItem.canTest()