Archive for September 13th, 2007

13
Sep

Changing text alignment in an Flex Accordion header

The following example shows how you can use the textAlign style to control the text alignment of a label in an Accordion header.

Full code after the jump.

Continue reading ‘Changing text alignment in an Flex Accordion header’

13
Sep

Checking to see if a Flex CheckBox is selected before allowing a user to press a Button

The following example shows a few different ways of checking to see if the user selected a CheckBox control before allowing them to click a Button control. Got other tips? Leave them in the comments!

Full code after the jump.

Continue reading ‘Checking to see if a Flex CheckBox is selected before allowing a user to press a Button’

13
Sep

Checking whether a color name is a valid color in Flex using the StyleManager class

The following example shows how to use the static StyleManager.isColorName() method to check whether a color name is valid or not. This method takes a single parameter, colorName, and returns a Boolean value representing whether the parameter is a valid alias for a color.

Full code after the jump.

Continue reading ‘Checking whether a color name is a valid color in Flex using the StyleManager class’