• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Chat

Among the exciting possibilities of XMLSockets in Flash is that, with the right server code, two or more clients can connect to the same server at the same time and communicate fairly directly with one another. Chat is the obvious and ever-popular use of this technology. Head-to-head games are another exciting use. Certainly the combination of Flash's multimedia and direct human contact will be exploited in other ways, some fun and some professional. The latter can include distance learning and customer service applications, for example.

To transform our simple echo server and its client into an experimental chat system, we don't have to do much. The client, in fact, could stay the same, but it would be fairly confusing, since it has an extremely limited one-line display. We update it into a multiline scrolling record. In fact, we keep a record of both outgoing and incoming traffic. This is more than most chat designers would want, but it is useful as we experiment and debug.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint