Constructor for the File class
Availability
Flash Media Server 2.
Usage
= new File(
)
fileObject
name
Parameters
Specifies the name of the file or directory. The name can contain only UTF-8 encoded
name
characters; high byte values can be encoded using the URI character- encoding scheme. The
specified name is mapped to a system path using the mappings specified in the
Application.xml file. If the path is invalid, the
property of the object is set to an empty
name
string, and no file operation can be performed.
Returns
A File object if successful; otherwise,
.
null
Description
Constructor; to create an instance of the File class, use the standard syntax for object creation.
Example
The following code creates an instance of the File class:
var errorLog = new File("/logs/error.txt");
File.canAppend
Availability
Flash Media Server 2
Usage
fileObject.canAppend
Description
Property (read-only); a Boolean value indicating whether a file was open for appending (
)
true
or not (
). The property is undefined for closed files.
false
File class
67
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?