MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 330

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 329
30
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
iDirection parameter to get the value for each direction of the connection.
The value returned indicates bytes per second and can be changed with
Client.setBandwidthLimit. The default value for a connection is set for each application in
the Application.xml file.
Example
The following example uses Client.getBandwidthLimit with the iDirection parameter to set
two variables,
clientToServer and serverToClient:
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 Client.ip property to verify whether a new client has a specific
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.
Zobrazit stránku 329
1 2 ... 325 326 327 328 329 330 331 332 333 334 335 ... 368 369

Komentáře k této Příručce

Žádné komentáře