|
| Hello coders,
I have been wrestling with this tutorial and cannot figure out why it is not working.
http://www.flashcomguru.com/tutorials/private_msg.cfm
I understand all of the set up code like creating the list object and connecting to it
but here is the confusion ... in the tutorial its written
"Now, you can use this to build a method that will send a call to a specific client. For example:
newClient.privateMsg = function(user, msg){
application.list[user].call("privateMsg", null, msg);
}
This will invoke a function 'privateMsg' on the specified client. I will leave that part up to you to finalize. Make sure you check the serverside and clientside actionscript dictionaries for details."
Obviously this is server side code ... don't we have to use a .Send method to call a function in a client ?
I am building on top of the existing TEXTCHAT example that comes with the flashcomm server and trying to extend to handle Private messaging.
This code works (server side) for broadcasting to everyone
newClient.msgFromClient = function(msg) {
msg = this.name+": "+msg+"\n";
application.users_so.send("msgFromSrvr", msg);
};
and it is a .SEND method ...
Has anyone had to deal with this ?
Thanks
Rez
|
|