User Guide

ProjectItem object 363
Example
The following example displays the path and name of each item in the project in the
Output panel.
files = fl.getProject().items;
for (i = 0; i < files.length; i++) {
fl.trace(files[i].itemURI);
}
See also
fl.getProject(), projectItem.displayName, project.items
projectItem.publish()
Availability
Flash 8.
Usage
projectItem.publish()
Parameters
None.
Returns
A Boolean value of true if successful; false otherwise.
Description
Method; publishes a project item. Only FLA files can be published,
Example
The following example publishes all of the publishable items in the project.
for (var i in fl.getProject().items) {
var item = fl.getProject().items[i];
if (item.canPublish()) {
item.publish();
}
}
See also
fl.getProject(), project.canPublishProject(), project.items,
projectItem.canPublish(), projectItem.publishProfile