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