
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
37
Availability
Flash Media Interactive Server 3 and Flash Media Development Server 3
Parameters
streamObj A Stream object.
Returns
A number.
Example
The following client-side code gets the length of the
sample_video stream and returns the value to returnObj:
nc.call("getStreamLength", returnObj, "sample_video");
Client.id
clientObject.id
Read-only; a string that uniquely identifies the client.
Availability
Flash Media Server 3
Example
The following
onConnect() function traces the ID of the connecting client:
application.onConnect(newClient) {
trace(newClient.id);
}
Client.ip
clientObject.ip
Read-only; A string containing the IP address of the client.
Availability
Flash Communication Server 1
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.
application.onConnect = function(newClient, name){
if (newClient.ip == "127.0.0.1"){
// Insert code here.
} else {
// Insert code here.
}
};
Client.pageUrl
clientObject.pageUrl
Commenti su questo manuale