Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-21-2005, 05:23 AM   #1
boybetrayed
Registered User
 
Join Date: Jun 2005
Posts: 4
Angry Private Chat Problem

Hi gurus,
I am working on a private chat(One to One) just like a messenger.
I am using tutorial_text (sample) as base.

Is there any code available for the private chat. Please help gurus..

The Main.asc file is as show below... What should be in the client ?
ActionScript Code:
application.onAppStart = function() {     trace("Begin sharing text");         // Get the server shared object users_so     application.users_so = SharedObject.get("users_so", false);             // Initialize the history of the text share     application.history = "";             // Initialize the unique user ID     application.nextId = 0; } //application.onConnect = function(newClient, name) application.onConnect = function(newClient, name) {     // Make this new client's name the user's name     newClient.name = name;         // Create a unique ID for this user while incrementing the     // application.nextID.     newClient.id = "u" + application.nextId++;         // Update the users_so shared object with the user's name     application.users_so.setProperty(newClient.name, name);         // Accept the client's connection     application.acceptConnection(newClient);         // Call the client function setHistory, and pass     // the initial history     newClient.call("setHistory", null, application.history);     // The client will call this function to get the server     // to accept the message, add the user's name to it, and     // send it back out to all connected clients.     newClient.msgFromClient = function(msg) {            application.users_so.send("msgFromSrvr", msg);     } } application.onDisconnect = function(client) {     trace("disconnect: " + client.name);     application.users_so.setProperty(client.name, null); }

Last edited by CyanBlue; 06-27-2005 at 03:40 PM. Reason: AS tag is applied
boybetrayed is offline   Reply With Quote
Old 06-26-2005, 06:25 AM   #2
Brajeshwar
Registered User
 
Join Date: May 2002
Location: Mumbai (INDIA)
Posts: 18
Default

We have used the old Samual Wan's code and improvise on it again and again and have build many facades of private chats. Try this one for instance

http://dev.oinam.com/avconf/
UID: lestrade
PPhrase: agile
Brajeshwar is offline   Reply With Quote
Old 06-26-2005, 06:37 AM   #3
boybetrayed
Registered User
 
Join Date: Jun 2005
Posts: 4
Default I checked it

Hi ,It seems to be good Audio and video Flash script, excellent work.
What i am looking for is a MSN messenger type(web based) one to one chat system where all the User name will be displayed like

Test 1
Test 2
Test 3

and so on...

so if for example i am logged in as CALLE

and click on Test1 a pop should open and start a private chat between Test 1 and CALLE

Also once clicked on Test 2 a separate conversation with Test 2
so 2 windows .... and so on ..

Also i should be able to change the color...for the messages...

Please Help and i know you would.
boybetrayed is offline   Reply With Quote
Old 06-26-2005, 06:39 AM   #4
Brajeshwar
Registered User
 
Join Date: May 2002
Location: Mumbai (INDIA)
Posts: 18
Default

Well, the way you like is also definitely possible.
But it is not something that I wrote some lines of coe and it will be working for you. Why not you start off and ask us for further help.
Brajeshwar is offline   Reply With Quote
Old 06-26-2005, 06:44 AM   #5
boybetrayed
Registered User
 
Join Date: Jun 2005
Posts: 4
Default Main.asc

Well i had infact...but as a newbie dont know like what has to be putin on the client site.

If you check the post above thats the main.asc file that i have been using.

any idea on what has to be done on the client side/code to send and retrieve messages
boybetrayed is offline   Reply With Quote
Old 12-09-2007, 07:04 AM   #6
sara.s
Registered User
 
Join Date: Apr 2007
Posts: 14
Default

Hi
I'm wondering if you find the answer, I need to build the private chat and I don't know how...
sara.s is offline   Reply With Quote
Old 12-09-2007, 07:12 AM   #7
Brajeshwar
Registered User
 
Join Date: May 2002
Location: Mumbai (INDIA)
Posts: 18
Default

Yes, we did. This is very old story.
We did it during the Flashcom 1.0 server days and many people have come up with many other solutions after that.

I don't even remember, where I kept that source archive.
If you're still interested, contact me.
Brajeshwar is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:15 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.