MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 61

Server-side actionscript language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; 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 Application.xml file.
The value specified cannot exceed the bandwidth cap value specified in the Application.xml
file.
Example
The following example sets the bandwidth limits for each direction, based on values passed to
the
function:
onConnect
application.onConnect = function(newClient, serverToClient,
clientToServer){
newClient.setBandwidthLimit(serverToClient, clientToServer);
application.acceptConnection(newClient);
}
Client.uri
Availability
Flash Media Server 2.
Usage
clientObject.uri
Description
Property (read-only); the URI that the client specifies to connect to this application instance.
Example
The following example defines an
indicating the URI the new client used to connect to the application:
application.onConnect = function(newClient, name){
trace("New user requested to connect to " + newClient.uri);
};
callback function that sends a message
onConnect
Client class
61

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash media server 2

Table of Contents