PDA

View Full Version : AS3 simple chat?



watcher
March 26th, 2009, 11:32 AM
Hi there,

anyone of you guys knows where i could get like very very simple AS3 chat? Just with chatbox and message box kind of thing. Using Sockets may be, but not necessarily (i don't need fast updates, via HTML requests is enough). My server-side skills are 0, so it would be best if i woudnt have to modify the server-side code.

EDIT: without using database. i suppose the php could write the txt file if necessary (history)

I found some AS3 chats build using Java, but i need PHP. Spent a while googling to no avail.

Thanks for suggestions, links, sourcecodes, whathaveyou!

watcher
March 27th, 2009, 06:09 AM
anyone?

Gnoll
March 27th, 2009, 06:53 AM
If you don't need real time try using php / amfphp / zendamf (there are lots of different easy to use database in betweens) in correspondence with a database (mysql is very accessible)

Good luck,
Gnoll

watcher
March 27th, 2009, 10:06 AM
..with a database (mysql is very accessible)
sorry i forgot to mention, i am lame with databases also :). So what i am looking for is maybe with php (which i dont have to touch at all), and this writes to a text file maybe (chat history?). Just a really quick simple solution, as the priority is to have it asap with least effort.

any examples?

Kirbyprime
March 27th, 2009, 10:30 AM
Assuming you know know how to use PHP to read / write txt files, one way would be to create a php file which reads the text file and formats it into xml and have it read by the AS3 file in mind.

As for writing to file. What you can do is set up another PHP file that writes to the text file based on $_GET, then by using the AS function sendToURL you can send information via URLRequest to the PHP file writing it to text.

AndreaCarrara
May 15th, 2011, 06:46 PM
try using Flash Media Server , its easy and do not require much server coding
http://andreacarraraorg.altervista.org/blog/tutorials/simple-chat-application-actionscript-3-0/
Hope it helps ;)