MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Manual do Utilizador Página 69

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 68
66
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Returns
A number; either a positive integer or -1.
File.readBytes()
fileObject.readBytes(dest, offset, length)
Reads the number of bytes specified by the length parameter from the fileObject into the dest parameter starting
at the
offset within dest. This method throws an EOFError if length exceeds File.length - File.position.
Availability
Flash Media Server 4
Parameters
dest A ByteArray into which bytes from the fileObject are read.
offset An integer specifying an offset location within the ByteArray specified in the dest parameter. This parameter
is optional. The default value is 0.
length An integer specifying the number of bytes to read from the fileObject. This parameter is optional. The
default value is
File.length - File.position.
Returns
Nothing.
File.readln()
fileObject.readln()
Reads the next line from the file and returns it as a string. The line-separator characters (either \r\n on Windows or \n
on Linux) are not included in the string. The character \r is skipped; \n determines the end of the line. If the file opened
in binary mode, the operation fails.
The File.readln() method has a maximum character limit of around 4100 characters. To read more characters, call
File.readAll().join('').
Availability
Flash Media Server 2
Returns
A string.
File.remove()
fileObject.remove(recursive)
Removes the file or directory pointed to by the File object. When this method fails, it invokes the
application.onStatus() event handler to report errors.
Availability
Flash Media Server 2
Vista de página 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 171 172

Comentários a estes Manuais

Sem comentários