-
Private Chat rooms / PMs
hi,
I am developing the application with this feature. and I completed it. so now i want to add some new and unique features to it. can you people suggest / wish some cool features for it?
Thanks for your time in advance.
-
bump!
please atleast tell me one feature per users!
thanks in advance.
-
The chat
Hi, how are you?
I am trying to do something like you did and I am a little bit lost.
My chat is for projects, this is, I have a project, so when I want to logging in for the chat, the logging page go to a database, it compares values (user id and password) and then, open the chat page but only to chat with people involved in the same project.
So if there are two people in different projects, each person will have its own chat page, to chat with people involved in each of the projects (I don't know if this is confusing). Is this possible to do?
Regarding what can you add to your chat, may be a sort of notepad for the users that don't get into the chat at the same time and they need to leave a message.
Well, I hope my english is clear and most important, my question is clear.
Thanks a lot for the time trying to understand what I wrote here.
Dani
-
how about blocking users from sending IM's?
how did you do the IM private msg?
can I see the app?
what pointers can you give about starting to build a IM/chat app?
thanks a lot
Chris
-
as for PMs, it is pretty easy to catch the PM in the main.asc file:
Client.prototype.SendPM = function (sendingUser,targetUser,message){
trace ("PM sent from "+sendingUser+" to "+targetUser);
for (i = 0; i < application.clients.length; i++){
if (application.clients[i].username == targetUser){
trace (application.clients[i].username + " PM made");
application.clients[i].call("NewPM",null,message,sendingUser);
} else if (application.clients[i].username == sendingUser){
application.clients[i].call("PMSent",null,targetUser);
}
}
}
with this being the function to send the PM inside the FLA on your PM MC, or button, or whatever:
function doSendPM(){
_level0.main_nc.call("SendPM",null,_root.username, targetUser,PMmessage);
}
and in the FLA just put these 2 routines inside your main connection function to receive / notify the PM send:
// --------------------------------------------------------------------------------
// Private Message Routine - Send
// --------------------------------------------------------------------------------
main_nc.PMSent = function(targetUser) {
_root.Log += "\n"+"Your PM to "+targetUser+" has been sent.";
};
// --------------------------------------------------------------------------------
// Private Message Routine - Receive
// --------------------------------------------------------------------------------
main_nc.NewPM = function(message, sendingUser) {
_root.Log += "\n"+sendingUser+" has sent you a Private Message: "+message;
// update the recipients chat history
_level0.mcnet_chat_mc.history_txt.htmlText += sendingUser+" (PM): "+message;
// force the users scroll of the recipient
_level0.mcnet_chat_mc.history_txt.scroll = _level0.mcnet_chat_mc.history_txt.maxscroll;
};
as for blocking PMs, I have built a custom People List with icons for each user for Ignore, PM, Vid1 & Vid2 (to cycle through videos for each user). I am still working on the Ignore function, which I think I may handle as a local function for the client, that is not institute it on the server as I would need to store Ignore values for each user, with a list of all current users, so it could get memory intensive pretty quick.
Unverse
-
thanks Unverse that definately put me on the right track
im going to try to implement this with the regular peopleList and a button to send a slected user a PM. I'll see if I can get this MF'er going.
i got 5 on your 20 sack
-
Wow this is great~~
This is great~
Thank you very much.
-
help
To Unverse
i don't understand where to put the 2 routine code can you tell me,thanks
-
help
To Unverse
i don't understand where to put the 2 routine code can you tell me,thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|