TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

cool chat

Page: 1 Reply
Sep 3rd 2004#159588 Report
Member since: Feb 13th 2004
Posts: 11
http://www.teknision.com/


Go to that site and check out their chat client... it basically enables web surfers to chat with others that are on the same website.... pretty neat stuff and also it has some kind of translator inside it... anyone knows how to do this chat client on flash ... for let's say without the translator.. ?
Reply with Quote Reply
Sep 3rd 2004#159589 Report
Member since: Aug 9th 2001
Posts: 2333
Would be pretty hard. Im sure you could do it though if you bought an actionscript book. Also, try aasking this in www.ultrashock.com, they'll be able to help you out more most likely.
Reply with Quote Reply
Sep 3rd 2004#159590 Report
Member since: Apr 25th 2003
Posts: 1977
for stuff like this, its all backend. If u know/have access to php/sql whatever....then the flash is easy (ive built a flash chat and forum myself).

The basics:

Start with php sessions. Everytime you start a session/check if a session is still valid, u echo a variable back to flash ( like echo "&userOnline=Guest#4" ).

In the flash file you'll have a "user list" as one of the main movie clips....most likely a looping clip that listens for the variables and displays each user.

Then you'll have 2 more clips, a input clip and output (what im calling them anyway). The input is what the user types. When they hit enter, it posts to php, which inserts the message & username (based on the session) into sql.

Also when you hit enter, it'll refresh the output clip........a looping clip which loads up a php page (this page gets the results from sql....formats them and echo's them back to flash).

thats really all you need for a simple/function chat. 3 clips, 2 looping waiting for php variables, and one POSTS to php.

You really need to know how php/flash interact first....that really the only hard part (which isnt really hard at all.....mostly just use "echo" and the "&"sign so flash knows the data is a variable)
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum