Prev | Current Page 110 | Next

LordAlex Leon, Greg Goralski

"Foundation Flex for Designers"


You can also connect the ComboBox to a dataProvider in the Design view by setting the component??™s
properties (Figure 7-27).
150
CHAPTER 7
Figure 7-27. Adding a dataProvider using Component properties
Summary
In Flex, you have a combination of ActionScript and MXML tags to create the ability of your project to
interact with the user. Although as a designer you will not likely create the ActionScript yourself, it is
important to see how the code connects with your components.
The methods that are created in ActionScript are called on by the events of the components to take
an action. Data is often used to populate components through the dataProvider property.
This has been a quick overview of coding concepts. To delve deeper into this topic, check out
Foundation ActionScript 3.0 with Flash CS3 and Flex by Sean McSharry, Steve Webster, and Todd Yard
(friends of ED, 2007). In the next chapter, we will use some of these coding techniques to create an
XML-driven photo gallery.
151
ACTIONSCRIPT IN FLEX
What we??™ll cover in this chapter:
Repeaters
XML within Flex
Animation
Files used in this chapter:
assets folder
PhotoGallery-Complete.zip
In this chapter, we??™ll look at bringing together some of what you??™ve already learned,
combining it with some new visual effects, and creating an XML-driven photo gallery.
Let??™s start by seeing what it will look like in the end (see Figure 8-1); load the complete
photo gallery from the code download for this book at www.


Pages:
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
bet365 klinkier ABC Futro sypialnia