User Guide
50 Server-Side ActionScript Language Reference
Event handler summary for the Client class
Client.agent
Availability
Flash Communication Server MX 1.0.
Usage
clientObject.agent
Description
Property (read-only); contains the version and platform information of the Flash client.
Example
The following example checks the agent property against the string "WIN" and executes
different code depending on whether they match. This code is written in an
onConnect
function.
function onConnect(newClient, name){
if (newClient.agent.indexOf("WIN") > -1){
trace ("Window user");
} else {
trace ("non Window user.agent is" + newClient.agent);
}
}
Client.call()
Availability
Flash Communication Server MX 1.0.
Event handler Description
Client."commandName"
Invoked when NetConnection.call(commandName) is called in a
client-side script.