Chapter 3. ACTIONSCRIPT 3.0 AND XML

So far in this book, you've been introduced to XML and seen some different ways to generate XML content for SWF applications. In this chapter, you'll learn about the role of XML in ActionScript 3.0. If you have been coding with ActionScript 2.0, be prepared to forget any previous experience you have with ActionScript and XML, because things have changed radically.

ActionScript 3.0 completely reworks the XML class and also introduces a new XMLList class. Both represent a leap forward for developers, as the changes will speed up the development process greatly. The new functionality is based on ECMAScript standards and is referred to as E4X.

Another major change is that XML is now a native data type. This means ...

Get Foundation XML and E4X for Flash and Flex now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.