
60
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
if (myFileObj.copyTo( "/logs/backup/hello.log")){
// Do something here.
}
File.creationTime
fileObject.creationTime
Read-only; a Date object containing the time the file was created.
Availability
Flash Media Server 2
File.eof()
fileObject.eof()
Returns a boolean value indicating whether the file pointer is at the end of file (true) or not (false). If the file is closed,
the method returns
true.
Availability
Flash Media Server 2
Returns
A boolean value.
Example
The following while statement lets you insert code that is executed until the file pointer is at the end of a file:
while (!myFileObj.eof()){
// Do something here.
}
File.exists
fileObject.exists
Read-only; a boolean value indicating whether the file or directory exists (true) or not (false).
Availability
Flash Media Server 2
File.flush()
fileObject.flush()
Flushes the output buffers of a file. If the file is closed, the operation fails. When this method fails, it invokes the
application.onStatus() event handler to report errors.
Availability
Flash Media Server 2
Kommentare zu diesen Handbüchern