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.
}