If you include both
R
Similarly, if you pass
If you want to make sure the archive attribute is not set, use this command with the
parameter before setting attributes. That is, there is no direct counterpart to
the archive attribute.
Examples
The following example sets the file mydata.txt to be read-only and hidden. It has no effect on
the archive attribute.
var URI = "file:///c|/temp/mydata.txt";
if (FLfile.exists(URI)) {
FLfile.setAttributes(URI, "RH");
}
The following example sets the file mydata.txt to be read-only and hidden. It also ensures that
the archive attribute is not set.
var URI = "file:///c|/temp/mydata.txt";
if (FLfile.exists(URI)) {
FLfile.setAttributes(URI, "N");
FLfile.setAttributes(URI, "RH");
}
See also
FLfile.getAttributes()
FLfile.write()
Availability
Flash MX 2004 7.2.
Usage
FLfile.write( fileURI, textToWrite, [ , strAppendMode ] )
Parameters
A string, expressed as a file:/// URI, specifying the file to which you want to write.
fileURI
A string representing the text you want to place in the file.
textToWrite
An optional string with the value
strAppendMode
to append
textToWrite
.
textToWrite
and
in
, the
W
strAttrs
and
, the
is ignored and the file is set as visible.
H
V
H
to the existing file. If omitted,
is ignored and the file is set as writable.
R
, which specifies that you want
"append"
is overwritten with
fileURI
N
that turns off
A
FLfile object
269
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?