MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE User Manual Page 40

  • Download
  • Add to my manuals
  • Print
  • Page
    / 155
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 39
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
Page view 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 154 155

Comments to this Manuals

No comments