
ProjectItem object
361
Returns
A Boolean value specifying whether a project item can be tested.
Description
Method; determines whether an item can be tested. An item can be tested if it is a FLA or
HTML file.
Example
The following example displays a message in the Output panel if the first item in the project
cannot be tested.
var item = fl.getProject().items[0];
if (!item.canTest()) {
fl.trace(item.name + " cannot be tested!");
}
See also
fl.getProject()
,
project.canTestProject()
,
project.items
,
projectItem.test()
projectItem.displayName
Availability
Flash 8.
Usage
projectItem.displayName
Description
Read-only property; a string that specifies the name of a project item, such as "file.fla".
Example
The following example displays the names of all the files in the project in the Output panel.
fl.trace( "These are all the files in the project: ");
var files = fl.getProject().items;
for (i = 0; i < files.length; i++) {
fl.trace(files[i].displ " ");
}
See also
fl.getProject()
,
project.items
,
projectItem.itemURI
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...