Monthly Archives: June 2009

Setting the corner radius on the Halo Alert control in Flex 4

The following example shows how you can set the corner radius on the Halo TextArea control (with default Spark skin) in Flex 4 by creating a custom skin and setting the radiusX and radiusY properties on the Rect objects (in Flex 3 and earlier this was done by setting the cornerRadius style directly).

Full code after the jump.

Continue reading Setting the corner radius on the Halo Alert control in Flex 4

Setting the background fill color on a Halo TextArea control in Flex 4

The following example shows how you can set the background fill color on the Halo TextArea control (with default Spark skin) in Flex 4 by setting the contentBackgroundColor style (in Flex 3 and earlier this was done by setting the backgroundColor style).

Full code after the jump.

Continue reading Setting the background fill color on a Halo TextArea control in Flex 4

Setting the selected indices on a Spark List control in Flex 4

The following example shows how you can set the selected indices on a Spark List control in Flex 4 by setting the selectedIndices property to a Vector object.

For more information on MXML Vector support in Flex 4, see the MXML Vector Support spec on the Adobe Open Source Flex SDK site.

Full code after the jump.

Continue reading Setting the selected indices on a Spark List control in Flex 4