Extending Flash |
|
|
|
| Objects > ProjectItem object > projectItem.publishProfile | |||
Flash 8.
projectItem.publishProfile
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.
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 doesn't exist in a file, the file isn't published.
var items = fl.getProject().items;
for ( i = 0 ; i < items.length ; i++ ) {
items[i].publishProfile = "mySpecialProfile";
items[i].publish();
}
fl.getProject(), project.canPublishProject(), project.items, projectItem.canPublish(), projectItem.publish()
|
|
|
|