Chapter 14
XML Upstream
Goals

In this chapter we will learn to generate an XML file from within Flash and to transmit that file directly to a server process (a PHP script). We will examine the XML data that arrives, first manually and then with increasingly sophisticated PHP functions. These operations will require learning a series of critical skills:

  • A simple technique for assembling XML structures within Flash.
  • Several functions that can be used to uploading the XML to a server.
  • Overview of content-types
  • PHP techniques to capture an XML package
  • Browser display of XML and use of Data Islands
  • PHP techniques to transmit XML

As we explore these techniques, we will build a login process, which can be used to register players as they join our game. We need a Flash front end where the player submits a username and password. The server receives this data and either accepts or rejects the player.