354
Objects
Example
The following example displays a message in the Output panel if the project cannot be tested:
if (!fl.getProject().canTestProject()) {
fl.trace("Project cannot be tested!");
}
See also
fl.getProject()
,
project.testProject()
,
projectItem.canTest()
project.defaultItem
Availability
Flash 8.
Usage
project.defaultItem
Description
Property; specifies the ProjectItem object that represents the default document in the project.
You must specify a default item if you want to test the project. See
ProjectItem object
.
Example
The following example sets the default document in the project to the Flower.fla file:
var myProject = fl.getProject();
var item = myProject.findProjectItem("file:///C|/Projects/files/
Flower.fla");
fl.myProject.defaultItem = item;
The following example displays the name of the default document in the Output panel:
fl.trace(fl.getProject().defaultItem.displayName);
See also
fl.getProject()
,
project.findProjectItem()
,
ProjectItem object
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...