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:
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:
- The XML Structure
- Loading an XML File
- Reading the XML Data
- XML and XMLList
- Accessing Data Directly
- Accessing Data Indirectly
- Calling all Children()
- Reading Attributes
- Filtering Values
- Filtering Node Values
- 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.