• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Flash and XML > The XMLSocket Object

The XMLSocket Object

Using XMLSocket, you can create a continuous connection between your Flash movie and a server. This can be useful in applications such as chat rooms, where the server can send data to your Flash movie as soon as it's available, instead of waiting for an HTTP request from your movie (which is how most of the Web works).

While a continuous open connection can be useful, it's pretty tricky to set up. There has to be a special application on the server that will allow a connection to be open. That means you can't just use XMLSocket in your Flash file and expect it to somehow connect to your ISP and give you a continuously open connection. XMLSocket requires a specific setup in order to work properly. You'll have to check with your ISP to see if they have that setup available (chances are they don't, so don't hold your breath). The server must run a daemon that understands the protocol used by the XMLSocket object.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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