project.addFile()
Availability
Flash 8.
Usage
project.addFile( fileURI [ , autoCreateFolder ] )
Parameters
A string specifying the file to be added to the project, expressed as a file:/// URI.
fileURI
autoCreateFolder
created in the Project panel to mirror the path in
Returns
If successful, returns a ProjectItem object; otherwise, returns
object.
Description
Method; adds the specified file to the project. You can use
where the new file should be positioned in the Project panel:
If you omit
autoCreateFolder
of the project.
If you pass a value of
the folder structure on disk, the folder structure of the files is mirrored in the Project
panel. That is, new folders are added to the Project panel if necessary to reflect the
location of the file on disk.
If you pass a value of
the folder structure on disk, the file is added at the root level. That is,
is ignored.
An optional Boolean value specifying if folders should be automatically
or pass a value of
for
true
autoCreateFolder
for
true
autoCreateFolder
; the default value is
fileURI
undefined
autoCreateFolder
, the file is added at the root level
false
, and
is below the FLP file in
fileURI
, and
is above the FLP file in
fileURI
.
false
. See
ProjectItem
to determine
autoCreateFolder
Project object
351
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers