In this chapter, youve seen how to use the XMLConnector component to load an external XML document into Flash. Youve also learned how to bind XML data to other components . Binding data allows you to associate part of a loaded XML document directly with a UI component. By using visual data binding, you can avoid writing ActionScript code to display the XML data in your movie.
Weve completed exercises in this chapter that bind the data from the XMLConnector component directly to one or more UI components. Ive also shown you how to bind the XMLConnector to DataSet and XUpdateResolver components so that you can keep track of changes and send them to a server-side page for external processing.
The XMLConnector provides a quick way to create Flash applications. Its easy to learn how to bind data to components, and you can be flexible in the way that you use these bindings. I havent spent a lot of time exploring the different ways to configure bindings because thats beyond the scope of this book. My main aim was to show you how easy it is to use the data components to work with XML content.
Although you can script the XMLConnector, the code required to create bindings within complicated data structures can be cumbersome, so I suggest that you stick to visual bindings wherever possible. There are several articles about visual data binding at the Macromedia website at www.macromedia.com/devnet/ if you want to find out more.
In the next chapter, Ill look at consuming web services with Flash. Ill show you different ways that you can add content from web services, including the use of the WebService connector for SOAP-based services.