Archive for August 17th, 2007

17
Aug

Displaying icons in a Flex List control

The following example demonstrates how to use embedded images in a List control so that each item in the list displays a little icon based on a certain property in the data provider. You’ll also notice that we set the textIndent style to give the label a bit more padding from the icon. Finally, we create three non-interactive Button controls beneath the list as a sort of “legend” for the icons.

Full code after the jump.

Continue reading ‘Displaying icons in a Flex List control’

17
Aug

Alternating row colors in a Flex List control

The following example shows how you can alternate row colors in a List control using the alternatingItemColors style.

Full code after the jump

Continue reading ‘Alternating row colors in a Flex List control’

17
Aug

Setting a Flex Button control’s border color and theme color

The following example shows how you can change the Button control’s borderColor and themeColor properties to one of the special Flex “halo” colors (”haloBlue”, “haloGreen”, “haloOrange” or “haloSilver”). Note that you can also use any other named or hex color as well, such as “red” or 0xFF0000.

Full code after the jump.

Continue reading ‘Setting a Flex Button control’s border color and theme color’