
63
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Returns
A boolean value indicating success (true) or failure (false).
Example
The following example creates a logs directory in the myFileObject instance:
if (myFileObject.mkdir("logs")){
// 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 an 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):
Comentarios a estos manuales