projectItem.canPublish()

Availability

Flash 8.

Usage

projectItem.canPublish()

Parameters

None.

Returns

A Boolean value specifying whether a project item can be published.

Description

Method; determines whether an item can be published. An item can be published only if it is a FLA file.

Example

The following example displays a message in the Output panel if the first item in the project cannot be published:

var item = fl.getProject().items[0];
if (!item.canPublish()) {
    fl.trace(item.displayName + " cannot be published!");
}

See also

fl.getProject(), project.canPublishProject(), project.items, projectItem.publish()