Extending Flash |
|
|
|
| Objects > ProjectItem object > projectItem.canPublish() | |||
Flash 8.
projectItem.canPublish()
None.
A Boolean value specifying whether a project item can be published.
Method; determines whether an item can be published. An item can be published only if it is a FLA file.
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!");
}
fl.getProject(), project.canPublishProject(), project.items, projectItem.publish()
|
|
|
|