Macromedia Flash Server - Private messaging with Flashcomm Tutorial

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > May 2005 > Private messaging with Flashcomm Tutorial





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Private messaging with Flashcomm Tutorial
Rez

2005-05-27, 5:45 pm

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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com