O'Reilly logo

Foundation XML and E4X for Flash and Flex by Sas Jacobs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required