PDA

View Full Version : Chat Room



Hovi
November 28th, 2003, 12:42 PM
Hello all ... i was wondering how hard is it to make a chat room with flash.Also does any one have any links to chat rooms that are with flash and that look nice.
I have seen some flash chat rooms from Flashkit.com
but didnt really like them.

Marz
November 28th, 2003, 12:49 PM
Well.. it would be very hard... Depending on how fast and how often you'd want the data inside of them to refresh...

If you knew how to use XML Sockets.. It wouldn't be too awful hard... Just getting the VB Application to run on the server would be the hard part... But.. using PHP or anything like that.. You'd have to devise a way to check for new messages every couple of seconds and all opf that fun stuff :)

REEFˇ
November 28th, 2003, 02:00 PM
I already have a really really good chatroom made. Fast, links, emails, name tag, blocking IP...made this all by myself, but with a looot of help with the php...too confidential. Well to check for new messages is like the easiest part. You could add actionscript:
function msgCheck() {
// This function loads the new messages from file.php...
loadVariablesNum("file.php", 0);
}
// Run this function every 3 seconds, 1000 =1 second...
myInterval = setInterval(msgCheck, 3000);Someone taught me how to use this and I'll remember it forever. It's so useful for a lot of stuff.

λ
November 28th, 2003, 02:14 PM
hey playa, did you know you can write Socket Servers in PHP?

http://www.zend.com/zend/tut/tutorial-staub3.php

I might try my hand at it sometime ;)

Hovi
November 28th, 2003, 03:40 PM
hey can i c it in action?N how long did it take u to set everything up.N wa would i need.I have php+mysql on my server(if it help)

λ
November 28th, 2003, 03:42 PM
you would need PHP on your server for that definitely, and probably MySQL as well :)

Hovi
November 28th, 2003, 03:44 PM
o ok thnx.still waitin 2 c his chat room >_<

MTsoul
November 28th, 2003, 10:17 PM
Originally posted by Sharif
I already have a really really good chatroom made. Fast, links, emails, name tag, blocking IP...made this all by myself, but with a looot of help with the php...too confidential. Well to check for new messages is like the easiest part. You could add actionscript:
function msgCheck() {
// This function loads the new messages from file.php...
loadVariablesNum("file.php", 0);
}
// Run this function every 3 seconds, 1000 =1 second...
myInterval = setInterval(msgCheck, 3000);Someone taught me how to use this and I'll remember it forever. It's so useful for a lot of stuff.

kool. what server did you use for ur xmlsocket connections?

Marz
November 28th, 2003, 11:46 PM
loadvariables doesn't involve xmlsockets MTSoul..

And Yes I knew about the PHP Socket Connections njs.. But you might as well use the Flash ones since he's using flash :D hehehe

REEFˇ
November 29th, 2003, 04:16 PM
Ok guys. Lemme clear this up and tell you how I made mine and what it uses:

1) PHP and AS of course. No XML or anything. Just those 2.
2) Uses loadVariablesNum to send and recieve messages from PHP files.
3) Took about 1 day to create the layout and eveything. 1 month to make a good working php file, it's good to get help.
4) My big chatroom that I will use for my upcoming website will have logins, logouts, hopefully stopping cursing, links, emails, custom html, trying to get sounds in there. Smileys will be the pain in the azz.
5) I use the setInterval code which keeps checking for messages.
6) Looking for a PHP code that refreshes msg's auto without wasting bandwidth....
7) The chatroom will be in action inside my signature footer. It's gonna malfunction a little bit since I can fit everything well into 15 kb with 300 x 60 dimensions but it's the concept thats cool.

- :thumb: Good luck.

Marz
November 29th, 2003, 05:01 PM
If you need any help with it Sharif.. Give me a hollar.. I'm about halfway done with my full sized Chat Room version... Using textfiles and php as well :)

Marz
November 29th, 2003, 05:01 PM
Ohh And for the smilies... Just have them as movieclips in flash.. Then substitue using string commands ;)

REEFˇ
November 30th, 2003, 10:15 AM
Hey Marz, I could use some help mine -- don't know much about strings...hit me up on AIM: sharif821 if you can or just post here or PM...Tell me the features of yours and how you made yours. Is yours fast?

Marz
November 30th, 2003, 11:59 AM
Ahh... Yeah.. I'm in the process of making mine my friend...

As soon as I get to he office I'll add you to my list.. I should be there within the hour.. :)

eyezberg
November 30th, 2003, 03:53 PM
Get a very nice one here (n° 1):
http://www.friendsofed.com/books/1590591879/code.html
or use PhatChat from
http://www.flashbuilder.ch/xoops/html/modules/news/
(you'll have to register),
which is also on Flashkit somewhere..if you wanna search ;)

Hovi
November 30th, 2003, 05:19 PM
well does any one have this runnin?
i have try using phat chat a while back but couldnt.If any of ya gets or has it runnin plz let me know how u did it.I have downloaded the mysql and the otha version.So if u set any of theses 2s plz plz help me.
If this helps i have my own server in my house.
thnx in advance.~_^

Yeldarb
November 30th, 2003, 05:29 PM
i have a shoutbox up, I don't have it refreshing automatically though, it's at www.t6sqd.com if you do a search on this forum, there is a LOOOONG thread of people who helped me get it up :D

Hovi
November 30th, 2003, 05:36 PM
ok thnx Yeldarb thank you thank you.I'll let u know if it worked
>_<

Hovi
December 1st, 2003, 09:09 PM
hey Yeldarb i search da forum didnt c anything :(

eyezberg
December 2nd, 2003, 07:30 AM
http://www.purnawijaya.com/index.php

modded version of mine:
http://www.eyezberg.com/shout/index.php