WHAT'S HOT
Prev | Current Page 144 | Next

LordAlex Leon, Greg Goralski

"Foundation Flex for Designers"


This one holds the grades for the second semester. To switch from one semester to another, we will be
using a ComboBox.
1. Place a ComboBox above the DataGrid. Set the Data provider for the ComboBox to {semester}
(Figure 10-40). This is a variable that we created in the ActionScript that holds the names of the
two XML files. Set Selected index to 0; this makes the ComboBox start with the first option
selected. Set Enabled to true.
Figure 10-40. ComboBox properties
214
CHAPTER 10
2. To make it respond, enter updateData(event) for the close event (Figure 10-41). You can find
the updateData event in the Category view of the Flex properties for the ComboBox in the
Events folder.
Figure 10-41. ComboBox event properties
Summary
The charts in Flex are a powerful tool that you can use to present data in a dynamic and compelling way.
We looked at two major ways of modifying the look of the charts: using CSS and adding fills directly to
the MXML.
The charts can be animated through interpolate, zoom, or slide, and labels can be modified to better
represent a chart. In the next chapter, we??™ll look at forms, data validation, and the Accordion component.
215
EXPLORING FLEX CHARTING
What we??™ll cover in this chapter:
Accordion component
Data validation
Files used in this chapter:
CH11-WillFlexForFood.zip
One of the real strengths of Flex is the ease of form creation. Forms are a common
technique in web design when you want to get a lot of information from the user.


Pages:
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
Magic Affair MIMS Lombard Megadeth Maanam