350
Objects
Project object
Availability
Flash 8.
Description
The Project object represents a Flash Project (FLP) file. You can use the following commands
to return a Project object:
■
To create a new project file, use
fl.createProject()
.
■
To open an existing project file, use
fl.openProject()
.
■
To return a Project object for the currently open project, use
fl.getProject()
.
Method summary for the Project object
The following methods can be used with the Project object.
Property summary for the Project object
The following properties can be used with the Project object.
Method
Description
project.addFile()
Adds the specified file to the project.
project.canPublishProject()
Determines whether the project can be published.
project.canTestProject()
Determines whether the project can be tested.
project.findProjectItem()
Searches for a specified file in the project.
project.publishProject()
Publishes the FLA files in a project.
project.testProject()
Tests the project.
Property
Description
project.defaultItem
Specifies the
ProjectItem object
that represents the
default document in the project.
project.items
An array of ProjectItem objects (see
ProjectItem object
)
contained in the project (read-only property).
project.name
The name of the project that appears in the Project panel.
project.projectURI
A string representing the path and name of the project
file, expressed as a file:/// URI (read-only property).
CHAPTER 31
Objects
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...