Flash Media Server |
|||
| Server-Side ActionScript Language Reference > Server-Side ActionScript Language Reference > Client class > Client.agent | |||
Flash Communication Server MX 1.0.
clientObject.agent
Property (read-only); contains the version and platform information of the Flash client.
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);
}
}