MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 360

Extending flash
Table of Contents

Advertisement

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()
projectItem.canTest()
Availability
Flash 8.
Usage
projectItem.canTest()
Parameters
None.
360
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents