Archive for September 16th, 2007

16
Sep

Setting a Flex container’s background disabled color and disabled overlay alpha

The following example shows how to use the backgroundDisabledColor and disabledOverlayAlpha styles to add a nice overlay to a container when the container’s enabled property is set to false.

Full code after the jump.

Continue reading ‘Setting a Flex container’s background disabled color and disabled overlay alpha’

16
Sep

Changing a form item’s background color when a child control has focus

I recently saw this on the Interwebs and thought I’d try to rebuild the effect in Flex. It is a pretty nice way to highlight the currently active form item.

The following example shows how you can use the focusIn and focusOut events to highlight the currently focused form item.

Full code after the jump.

Continue reading ‘Changing a form item’s background color when a child control has focus’

16
Sep

Drawing complex rectangles in Flex using the GraphicsUtil class

The following example shows how you can draw complex rectangles using the drawRoundRectComplex() method in the mx.utils.GraphicsUtil class.

Full code after the jump.

Continue reading ‘Drawing complex rectangles in Flex using the GraphicsUtil class’