
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
32
Method summary
Client.agent
clientObject.agent
Read-only; the version and platform of the client.
When a client connects to the server, the format of
Client.agent is as follows:
Operating_System Flash_Player_Version
For example, if Flash Player version 9.0.45.0 is running on Windows, the value of Client.agent is:
"WIN 9,0,45,0".
When a connection is made to another Flash Media Interactive Server, the format of Client.agent is as follows:
Server_Name/Server_Version Operating_System/Operating_System_Build
For example, if the server version is 3.0.0 and it’s running on Windows Server 2003, the value of Client.agent is:
"FlashCom/3.0.0 WIN/5.1.2600".
Availability
Flash Communication Server 1
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");
Client.videoSampleAccess Enables Flash Player to access raw, uncompressed video data from streams in the specified
folders.
Client.virtualKey A virtual mapping for clients connecting to the server.
Client.writeAccess Provides write access to directories that contain application resources (such as shared
objects and streams) for this client.
Method Description
Client.call() Executes a method on a client or on another server.
Client.checkBandwidth() Call this method from a client-side script to detect bandwidth.
Client.getBandwidthLimit() Returns the maximum bandwidth that the client or the server can use for this connection.
Client.getStats() Returns statistics for the client.
Client.getStreamLength() Returns the length of a stream, in seconds.
Client.ping() Sends a ”ping“ message to the client and waits for a response.
Client.remoteMethod() Invoked when a client or another server calls the NetConnection.call() method.
Client.__resolve() Provides values for undefined properties.
Client.setBandwidthLimit() Sets the maximum bandwidth for this client from client to server, server to client, or both.
Property Description
Commenti su questo manuale