friendsofed.com you??™ll find a file that holds the basic code and associated files in a prebuilt Flex
application called FlexCharting-Base.zip. To start working with the file, import it into Flex Builder.
1. Start by going to this book??™s page on www.friendsofed.com and downloading the source files
for this chapter.
2. Next, in Flex Builder select File ?¤ Import ?¤ Flex Project (Figure 10-2).
3. In the resulting dialog box, browse to where you saved FlexCharting-Base.zip and select it
(Figure 10-3).
196
CHAPTER 10
Figure 10-2. Importing our project
Figure 10-3. Importing a Flex Project from Archive
197
EXPLORING FLEX CHARTING
4. Click Finish to import the project. Flex Builder will then unzip and place all the project files into
the default Flex Builder folder. You can follow the same steps to open the completed project
FlexCharting-Final.zip to see how it all works when you??™ve finished.
5. Select the MXML file in the Navigator panel to verify that the file has been created (Figure 10-4).
Double-click the file to load it.
Figure 10-4. Double-click the MXML file.
6. In the Design view, the document will look blank because we haven??™t added any components.
In the Source view, you can see the ActionScript that Flex Builder has created to make this
project work. Let??™s walk through this ActionScript to get a sense of what is happening before
we start connecting the charts to the data.
A look at the ActionScript involved
This code (Figure 10-5) uses some of the same techniques that we have used in previous chapters
to import XML data.
Pages:
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146