Client.ip; Client.readaccess - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

Returns
An integer indicating bytes per second.
Description
Method; returns the maximum bandwidth that the client or the server can use for this
connection. Use the
The value returned indicates bytes per second and can be changed with
Client.setBandwidthLimit
the Application.xml file.
Example
The following example uses
two variables,
clientToServer
application.onConnect(newClient){
var clientToServer= newClient.getBandwidthLimit(0);
var serverToClient= newClient.getBandwidthLimit(1);
}

Client.ip

Availability
Flash Communication Server MX.
Usage
Client.ip
Description
Property (read-only); contains the IP address of the Flash client.
Example
The following example uses the
IP address. The result determines which block of code runs.
function application.onConnect(newClient, name){
if (newClient.ip == "127.0.0.1"){
// insert code here
} else {
// insert code here
}
}

Client.readAccess

Availability
Flash Communication Server MX.
Usage
Client.readAccess
Description
Property; provides read-access rights to application resources (shared objects and streams) for this
client. To give a client read access to directories containing application resources, list directories in
a string delimited by semicolons.
30
parameter to get the value for each direction of the connection.
iDirection
. The default value for a connection is set for each application in
Client.getBandwidthLimit
and
serverToClient
Client.ip
with the
:
property to verify whether a new client has a specific
parameter to set
iDirection

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents