User Guide

364 Objects
projectItem.publishProfile
Availability
Flash 8.
Usage
projectItem.publishProfile
Description
Property; a string that specifies the publish profile to use when publishing a project item (FLA
file). The publish profile must be an existing profile in the item, or a subsequent call to
projectItem.publish() will fail. See projectItem.publish().
If the item is not a FLA file, this property is an empty string (""), and any attempts to set this
property fail.
Example
The following example sets the publish profile of all the items in the project to a specified
profile that already exists in the item, and then publishes each item. If the profile doesnt exist
in a file, the file isnt published.
var items = fl.getProject().items;
for ( i = 0 ; i < items.length ; i++ ) {
items[i].publishProfile = "mySpecialProfile";
items[i].publish();
}
See also
fl.getProject(), project.canPublishProject(), project.items,
projectItem.canPublish(), projectItem.publish()