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

Chapter 7. HTTP Connection > Loading Data from a File

Loading Data from a File

Our first experiment with data communication in Flash is quite cautious. We load a file from the server and extract a single datum from it. We continue our pursuit of practical utility by adding a simple data-loading feature to our Quiz game.

Such a useful feature would be to display an up-to-date high score. Let us presume that the highest score achieved so far is known and published on our web site. We would prefer to use XML for this purpose, but at the moment we want the simplest path from server to client, and that path is HTTP GET. It is only as the complexity and size of our data loads increase that GET becomes clearly inferior to XML, and soon utterly inadequate for the task. But to move a single scalar variable, HTTP GET makes a fine baby step.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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