Simple Chatt-system with Flash/XML

Hi, guys!

Im in need of a very simple chattsystem, and I want to use Flash for this purpose (mainly because it looks so darn good).

So I was thinking that with the ability to send and recieve XML-data, this could be done in a simple way, something like this:

  1. On the server (to which clients hook up), there is an XML-file with only one parameter: a textstring.
  2. The client (ie. the actual flash-script running on the clients computer) requests with regular intervals the textstring in this XML-file.
    If a) the textstring is the same as the one already displayed in the clients display-window (of the Flash-program), no uppdate of the window will occur.
    If b) the textstring is new, the new textstring will be added on a new line in the display-window of the flash-program.
    3 When the client types and sends a textstring from the inputbox of the flash-program, this string will be transmitted to the host (ie. the server) in form of XML-data.
    –(Now for the thing I dont know if it can be done)–
  3. When the XML-string reaches the server, it replaces the textstring in the XML-document, so that any subsequent updates of client-computers will be done with this new textstring.

So, you guys who are pros at this stuff - is this possible (with modifications - and what modifications?) ?
And can you actually have a program alter the XML-file in realtime?

Thanx

I’m not a pro at this, but you would think it’d be a lot easier and more featureful if you used Communication Server… I’m not sure though… Just guessing by the name :slight_smile: