User Guide
72 Server-Side ActionScript Language Reference
File.flush()
Availability
Flash Media Server 2.
Usage
fileObject.flush()
Parameters
Returns
A Boolean value; returns a Boolean value indicating whether the flush operation was
successful (
true) or not (false).
Description
Method; flushes the output buffers of a file. The operation fails if the file is closed.
Example
The following if statement lets you insert code that executes if myFileObj flushes
successfully:
if (myFileObj.flush()){
// Do something here.
}
File.isDirectory
Availability
Flash Media Server 2.
Usage
fileObject.isDirectory
Description
Property (read-only); a Boolean value indicating whether the file is a directory (true) or not
(
false).
A File object that represents a directory has properties that represent the files contained in the
directory. These properties have the same names as the files in the directory, as shown in the
following example:
myDir = new File("/some/directory");
myFileInDir = myDir.foo;