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