Chapter 14. Customizing Application Appearance
The Flex framework has a great deal of functionality built into it, making it relatively easy to start building applications. All the user interface components and layout containers greatly simplify the process of creating a new application because you can utilize all the functionality of the components without having to write all the code to make them work. However, as great as that is, it would be nearly useless in most cases if you could not customize the appearance of the components. Yet, as we’ll see in this chapter, customizing the appearance of Flex components is another built-in feature.
There are essentially two ways to customize the appearance of components:
Apply styles.
Change skins.
Styles are settings such as color, font face, border settings, row height, and so on. These are settings that you can customize entirely programmatically both at compile time and at runtime. Styles allow you to customize a great deal of the appearance of components, yet they can go only so far. For example, if you want to change the background color of a button, you can do that using styles, but if you want to completely change the shape of a button (from a rounded rectangle to a trapezoid, for instance), you need to use a different technique in which you change the skins of the component. Skins can be graphical elements (PNG files, for example) or programmatic elements (classes), and they allow you to not only customize the existing elements of ...
Get Programming Flex 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.