MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 45

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 44
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
42
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)
Sets the maximum bandwidth for this client from client to server, server to client, or both. The default value for a
connection is set for each application in the
Client section of the Application.xml file. The value specified cannot
exceed the bandwidth cap value specified in the Application.xml file. For more information, see Adobe Flash Media
Server Configuration and Administration Guide.
Availability
Flash Communication Server 1
Parameters
iServerToClient A number; the bandwidth from server to client, in bytes per second. Use 0 if you don’t want to
change the current setting.
iClientToServer A number; the bandwidth from client to server, in bytes per second. Use 0 if you dont want to
change the current setting.
Example
The following example sets the bandwidth limits for each direction, based on values passed to the
onConnect()
function:
application.onConnect = function(newClient, serverToClient, clientToServer){
newClient.setBandwidthLimit(serverToClient, clientToServer);
application.acceptConnection(newClient);
}
Client.uri
clientObject.uri
Read-only; the URI specified by the client to connect to this application instance.
Availability
Flash Media Server 2
Vedere la pagina 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 154 155

Commenti su questo manuale

Nessun commento