The following example deletes the Configuration folder and its contents:
FLfile.remove("file:///C|/MyApplication/Configuration/")
See also
FLfile.createFolder()
FLfile.setAttributes()
Availability
Flash MX 2004 7.2.
Usage
FLfile.setAttributes( fileURI, strAttrs )
Parameters
A string, expressed as a file:/// URI, specifying the file whose attributes you want
fileURI
to set.
A string specifying values for the attribute(s) you want to set. For acceptable
strAttrs
values for
, see the description below.
strAttrs
Returns
A Boolean value of
true
Results are unpredictable if the file or folder doesn't exist. You should use
FLfile.exists()
Description
Method; specifies system-level attributes for the specified file.
The following values are valid for
— No specific attributes (not read-only, not hidden, and so on)
N
— Ready for archiving (Windows only)
A
— Read-only (on the Macintosh, read-only means "locked")
R
— Writable (overrides
W
— Hidden (Windows only)
H
— Visible (overrides
V
268
Objects
,
FLfile.getAttributes()
if successful.
before using this method.
strAttrs
)
R
, Windows only)
H
:
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers