
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
52
// Do something if a logs directory is created successfully.
}
File.mode
fileObject.mode
Read-only; the mode of an open file. It can be different from the mode parameter that was passed to the open()
method for the file if you have repeating attributes (for example,
"read, read") or if some attributes were ignored.
If the file is closed, the property is
undefined.
Availability
Flash Media Server 2
See also
File.open()
File.name
fileObject.name
Read-only; a string indicating the name of the file. If the File object was created with a invalid path, the value is an
empty string.
Availability
Flash Media Server 2
File.open()
fileObject.open(type, mode)
Opens a file so that you can read from it or write to it. First use the File constructor to create a File object and then
call
open() on that object. When the open() method fails, it invokes the application.onStatus() event handler
to report errors.
Availability
Flash Media Server 2
Parameters
type A string indicating the encoding type for the file. The following types are supported (there is no default
value):
mode A string indicating the mode in which to open the file. The following modes are valid and can be combined
(modes are case sensitive and multiple modes must be separated by commas—for example,
"read,write"; there is
no default value):
Value Description
"text" Opens the file for text access by using the default file encoding.
"binary" Opens the file for binary access.
"utf8" Opens the file for UTF-8 access.
Commenti su questo manuale