Chapter 6. LOADING METHODS SPECIFIC TO FLEX

In the previous chapter, I showed you how to load external XML content into both Flash and Flex using the URLLoader class. You saw that you can load content from a static XML file or from a server-side page that generates an XML stream. Both Flash and Flex can use the URLLoader class. The advantage of loading external content is that your applications will be more flexible than if you store the content within the application itself.

While Flex can use the URLLoader class, it can also use the HTTP Service class to access many types of external content, including -XML-formatted content. It's possible to either use a tag-based approach with the <HTTPService> MXML element or to write ActionScript 3.0 code ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.