MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificações Página 363

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 362
Server-Side Communication ActionScript 63
Parameters
flag This parameter can have the value record, append, or false. If the value is record, the
data file is overwritten if it exists. If the value is
append, the incoming data is appended to the end
of the existing file. If the value is false, any previous recording stops. By default, the value is
record.
Returns
A Boolean value of true if the recording succeeds, false otherwise.
Description
Method; records all the data going through a Stream object.
Example
This example opens a stream s and, when it is open, plays sample and records it. Because no
value is passed to the
record method, the default value, record, is passed.
// To start recording
s = Stream.get("foo");
if (s){
s.play("sample");
s.record();
}
// To stop recording
s = Stream.get("foo");
if (s){
s.record(false);
}
Stream.send
Availability
Flash Communication Server MX.
Usage
Stream.send(handlerName, [p1, ..., pN])
Parameters
handlerName Calls the specified handler in client-side ActionScript code. The handlerName
value is the name of a method relative to the subscribing Stream object. For example, if
handlerName is doSomething, the doSomething method at the stream level is invoked with all
the
p1, ..., pN parameters. Unlike the method names in Client.call and
NetConnection.call, the handler name can be only one level deep (that is, it cannot be of the
form
object/method).
Note: Do not use a built-in method name for a handler name. For example, the subscribing stream will be closed if
the handler name is close.
p1, ..., pN Parameters of any ActionScript type, including references to other ActionScript
objects. These parameters are passed to the specified handler when it is executed on the Flash
client.
Returns
A Boolean value of true if the message was sent to the client, false otherwise.
Vista de página 362

Comentários a estes Manuais

Sem comentários