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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 54
52
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
function logReportedAddresses(client) {
var n = client.reportedAddresses.length;
trace("Client has reported " + n + " addresses.");
for (var i = 0; i < n; ++i)
trace(" " + i + ": " + client.reportedAddresses[i]);
}
Client.__resolve()
Client.__resolve = function(propName){}
Provides values for undefined properties. When an undefined property of a Client object is referenced by Server-Side
ActionScript code, the Client object is checked for a _
resolve() method. If the object has a _resolve() method, it
is invoked and passed the name of the undefined property. The return value of the _
resolve() method is the value of
the undefined property. In this way, _
resolve() can supply the values for undefined properties and make it appear
as if they are defined.
Availability
Flash Communication Server 1
Parameters
propName A string indicating the name of an undefined property.
Returns
The value of the property specified by the propName parameter.
Example
The following example defines a function that is called whenever an undefined property is referenced:
Client.prototype.__resolve = function (name) {
return "Hello, world!";
};
function onConnect(newClient){
// Prints "Hello World".
trace (newClient.property1);
}
Client.secure
clientObject.secure
Read-only; A boolean value that indicates whether this is an SSL connection (true) or not (false).
Availability
Flash Media Server 2
Client.setBandwidthLimit()
clientObject.setBandwidthLimit(iServerToClient, iClientToServer)
Note: This method is not supported over RTMFP connections.
Vista de página 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 171 172

Comentários a estes Manuais

Sem comentários