
26
The methods are available to any instance, so within application.onConnect, which is passed a
clientObj argument, you can write the following code:
application.onConnect(clientObj){
var clientID = clientObj.createUniqueID();
var clientWritePerm = clientObj.getWritePermission();
};
Method summary for the Client object
Property summary for the Client object
Event handler summary for the Client object
Client.agent
Availability
Flash Communication Server MX.
Usage
Client.agent
Description
Property (read-only); contains the version and platform information of the Flash client.
Method Description
Client.call Executes a method on the Flash client asynchronously and returns the value
from the Flash client to the server.
Client.getBandwidthLimit Returns the maximum bandwidth the client or the server can attempt to use
for this connection.
Client.__resolve Provides values for undefined properties.
Client.setBandwidthLimit Sets the maximum bandwidth for the connection.
Property Description
Client.agent The version and platform of the Flash client.
Client.ip The IP address of the Flash client.
Client.readAccess A list of access levels to which the client has read access.
Client.referrer The URL of the SWF file or server where this connection originated.
Client.writeAccess A list of access levels to which the client has write access.
Event handler Description
Client."commandName" Invoked when NetConnection.call(commandName) is called in a client-side
script.
Commentaires sur ces manuels