Apress Access

Foundation XML and E4X for Flash and Flex

By Sas Jacobs

  • eBook Price: $27.99
Buy eBook Buy Print Book

Foundation XML and E4X for Flash and Flex Cover Image

This book provides Flash and Flex developers with a coverage of XML and E4X from the ground up.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-1634-6
  • User Level: Beginner to Advanced
  • Publication Date: January 13, 2009
  • Available eBook Formats: PDF

Related Titles

  • HTML5 Quick Markup Reference
  • Migrating to Swift from Flash and ActionScript
  • Practical Web Design for Absolute Beginners
Full Description

XML is the lingua franca of the Web. All designers and developers working in a web environment need a sound understanding of XML and its role in application development. Many software packages and organizations allow for the exchange of data using an XML format. Web services and RSS feeds are now commonplace.

For those working with Flash and Flex, a thorough understanding of XML is particularly important. XML documents are one option for the data provided to SWF applications. Flash and Flex can load, display, and modify XML content. These applications can also send XML content to other applications for updating or for use in different situations.

ActionScript 3.0 introduced some fundamental changes to the way in which Flash and Flex applications work with XML. One significant change is that XML is now a native data type. ActionScript 3.0 also introduced new classes and a different framework for working with external documents. These changes are based on the E4X ECMAScript standard, and they streamline and simplify the process for working with XML in Flash and Flex.

In Foundation XML and E4X for Flash and Flex, Sas Jacobs gives you an introduction to XML and E4X. She explores the XML and XMLList classes and explains E4X expressions, providing examples for both Flash and Flex. In addition to explaining how to incorporate XML documents in Shockwave Flash applications, Sas shows you approaches specific to Flash and Flex and explores real-world usage. The book finishes with two case studies. In the first, you will learn how to consume and display information and images from Flickr using Flash. In the second, you will work with Adobe Kuler in Flex.

Whether you are a designer or developer, this book will help you work with XML and make the transition from ActionScript 2.0 to ActionScript 3.0. It will also provide you with an excellent grounding if you are new to Flash and Flex.

What you’ll learn

  • Work with the XML and XMLList classes in ActionScript 3.0
  • Build E4X expressions in ActionScript 3.0 to simplify your work flow
  • Work with XML content in Flash and Flex to create dynamic web applications
  • Consume REST and SOAP web services in Flash and Flex
  • Build real-world Flash and Flex XML applications

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page 331:

http://www.webservice.com/CurrencyCovenvertor.asmx?WSDL is actually found at http://www.webservice.net/CurrencyConvertor.asmx?WSDL. Notice the only difference is that it is now at .net not .com like in the book. Don't know if the website moved it or it was just a typo.

On page 380:

function WebServiceGET() :void does not have the arguments

It should be:
function webServiceGET(from:String, to:String):void