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()
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
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()
354
Objects
,
projectItem.canTest()
ProjectItem
,
ProjectItem object
object.
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers