
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
56
Skips a specified number of bytes and returns the new file position. This method can accept both positive and
negative parameters.
Availability
Flash Media Server 2
Parameters
numBytes A number indicating the number of bytes to move the file pointer from the current position.
Returns
If the operation is successful, returns the current position in the file; otherwise, returns -1. If the file is closed, the
operation fails and calls
application.onStatus() to report a warning. The operation returns -1 when called on a
directory.
File.toString()
fileObject.toString()
Returns the path to the File object.
Availability
Flash Media Server 2
Returns
A string.
Example
The following example outputs the path of the File object
myFileObject:
trace(myFileObject.toString());
File.type
fileObject.type
Read-only; a string specifying the type of data or encoding used when a file is opened. The following strings are
supported:
"text", "utf8", and "binary". This property is undefined for directories and closed files. If the file is
opened in
"text" mode and UTF-8 BOM (Byte Order Mark) is detected, the type property is set to "utf8".
Availability
Flash Media Server 2.0
See also
File.open()
File.write()
fileObject.write(param0, param1,...paramN)
Writes data to a file. The write() method converts each parameter to a string and then writes it to the file without
separators. The file contents are buffered internally. The
File.flush() method writes the buffer to the file on disk.
When this method fails, it invokes the
application.onStatus() event handler to report errors.
Commenti su questo manuale