MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 77

Server-side actionscript language reference
Table of Contents

Advertisement

Returns
A Boolean value indicating whether the file opened successfully (
) or not (
).
true
false
Description
Method; opens a file so that you can read from it or write to it. First, you must create a file
object and then call the
method on that object. There are no default values for the
open()
and
parameters—values must be specified.
type
mode
Example
The following
statement lets you insert code that executes when a text file is opened in read
if
mode:
if (myFileObject.open("text", "read") ){
// Do something here.
}
File.position
Availability
Flash Media Server 2.
Usage
fileObject.position
Description
Property; the current offset in the file. This is the only property that can be set. Setting this
property performs a seek operation on the file. The property is undefined for closed files.
File.read()
Availability
Flash Media Server 2.
Usage
fileObject.read(numChars)
Parameters
An integer specifying the number of characters to read. If
specifies
numChars
numChars
more bytes than are left in the file, the method reads to the end of the file.
File class
77

Advertisement

Table of Contents
loading
Need help?

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?

This manual is also suitable for:

Flash media server 2

Table of Contents