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 (
or not (
true)
false).
Description
Method; flushes the output buffers of a file. The operation fails if the file is closed.
Example
The following
statement lets you insert code that executes if
flushes
if
myFileObj
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 (
) or not
true
(
).
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;
72
Server-Side ActionScript Language Reference
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?