05-27-05 10:45 PM
Hello all I am trying to understand how to get the following to work where I
can connect to a specific user:
application.onConnect= function(newClient, username, userid, webcam,
level){
newClient.username = username;
newClient.userid = userid;
application.acceptConnection(newClient);
//not sure if I should call the client and get his username
newClient.call("getusername",applyusername(),userid);
//or is there a better way to do it?
}
applyusername.onResult = function(){
//append the username to a userid?
}
Client.prototype.specifyuser = function(message,user){
for (var i = 0; i<application.newClients.length;i++){
var c=application.newClients[i];
if (c.username ==user){
c.call("seemessage",null,message);
}
}
}
It would be nice if I can make a call directly to each specific client witho
ut sending the info to everyone.
on the client I would like to be able to simply do a call:
nc.call("specificuser",null,"hello you",user);
thanx for your help in advance
---------------------------------
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|