File.name
Availability
Flash Media Server 2.
Usage
fileObject.name
Description
Property (read-only); a string indicating the name of the file. The value is an empty string if
the File object was created with a invalid path.
File.open()
Availability
Flash Media Server 2.
Usage
fileObject.open("type","mode")
Parameters
A string indicating the encoding type for the file. The following types are supported:
type
Opens the file for text access using the default file encoding.
"text"
Opens the file for binary access.
"binary"
Opens the file for UTF-8 access.
"utf8"
A string indicating the mode in which to open the file. The following modes are valid
mode
and can be combined (modes are case-sensitive and multiple modes must be separated by
commas):
Indicated that the file is opened for reading.
"read"
Indicates that the file is opened for writing.
"write"
Indicates that the file is opened for both reading and writing.
"readWrite"
Opens file for write. Positions the file pointer at the end of the file when you
"append"
attempt to write to the file.
Creates a new file if the file is not present. If file exists, its contents are
"create"
destroyed.
If both
"read"
76
Server-Side ActionScript Language Reference
and
are set, then
"write"
is automatically set.
"readWrite"
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?