Using XML in Flash CS3/AS3

One of the major changes in AS3 is how you deal with XML content. While a lot of similarities carried over from the AS2 days, there are new time-saving niceties in AS3 that make working with XML files easier. One of the introductions is Ecmascript for XML, known as E4X for short. In this tutorial, you will gradually learn more XML tricks as you try to parse the various parts of the following XML data:

Example of XML Document

This tutorial attempts to cover a lot of ground, so I’ve provided a short table of contents to give you an idea of what to expect:

  1. The XML Structure
  2. Loading an XML File
  3. Reading the XML Data
    1. XML and XMLList
    2. Accessing Data Directly
    3. Accessing Data Indirectly
    4. Calling all Children()
    5. Reading Attributes
  4. Filtering Values
    1. Filtering Node Values
    2. Filtering Attribute Information

As you can see, there are a lot of topics that you’ll learn how to juggle in Flash. Let’s start at the top and being by first describing what an XML file is. Read more here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s