Tag Archives: radiusX

Setting the corner radius a Spark Rect shape in Flex 4

In a previous example, “Setting a corner radius on individual corners on a Rect in Flex 4”, we saw how you could individually set the corner radius on each corner of a Spark Rect shape in Flex 4 by setting the topLeftRadiusX, topRightRadiusX, bottomLeftRadiusX, and bottomRightRadiusX properties.

The following example shows how you can set the corner radius on all corners of a Spark Rect shape in Flex 4 by setting the radiusX and radiusY properties.

Continue reading Setting the corner radius a Spark Rect shape in Flex 4

Creating an item renderer with a corner radius on a Spark List control in Flex 4

The following example shows how you can create a custom item renderer with a corner radius on a Spark List control in Flex 4 by setting the cornerRadius property and creating a custom item renderer which sets its autoDrawBackground property to false and draws its own rounded background fill using the radiusX property in the hovered and selected states.

Continue reading Creating an item renderer with a corner radius on a Spark List control in Flex 4