MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manuale Utente Pagina 61

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 60
58
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Parameters
name A string indicating the name of the file or directory. The name can contain only UTF-8 encoded characters; high
byte values can be encoded by using the URI character-encoding scheme. The specified name is mapped to a system
path by using the mappings specified in the
FileObject section of the Application.xml file. If the path is invalid, the
name property of the object is set to an empty string, and no file operation can be performed.
Returns
A File object if successful; otherwise, null.
Example
The following code creates an instance of the File class:
var errorLog = new File("/logs/error.txt");
Note that the physical file isn’t created on the hard disk until you call File.open().
File.canAppend
fileObject.canAppend
Read only; a boolean value indicating whether a file can be appended (true) or not (false). The property is undefined
for closed files.
Availability
Flash Media Server 2.0
File.canRead
fileObject.canRead
Read-only; A boolean value indicating whether a file can be read (true) or not (false).
Availability
Flash Media Server 2
File.canReplace
fileObject.canReplace
Read-only; A boolean value indicating whether a file was opened in "create" mode (true) or not (false). This
property is undefined for closed files.
Availability
Flash Media Server 2
File.canWrite
fileObject.canWrite
Read only; a boolean value indicating whether a file can be written to (true) or not (false).
Note: If File.open() was called to open the file, the mode in which the file was opened is respected. For example, if the
file was opened in read mode, you can read from the file, but you cannot write to the file.
Vedere la pagina 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 171 172

Commenti su questo manuale

Nessun commento