By this time, you would be comfortable in writing Flex applications by using many features of Flex and ActionScript, which you have learned in the previous chapters. In this section, we will build something more complicated and interesting by using many features, including custom components, events, data binding, E4X, loading external XML data, and so on.
We will build a sample books explorer, which will load a books catalog from an external XML file and allow the users to explore and view details of books. We will also build a simple shopping cart component, which will list books that a user would add to cart by clicking on the add to cart button.
Create a new Flex project using Flex Builder. Once the project is created, create an \assets\images\
folder under its src
folder. This folder will be used to store images used in this application. Now start creating the following source files into its source folder.
Let's start by creating a simple book catalog...