Category Archives: Button (Spark)

Setting the icon placement on a Spark Button control in Flex Hero

In a previous example, “Setting an icon on a Spark Button in Flex Hero”, we saw how you can set the icon on a Spark Button in Flex Hero by setting the icon style.

The following example shows how you can set the icon placement on a Spark Button control in Flex Hero by setting the iconPlacement style.

Continue reading Setting the icon placement on a Spark Button control in Flex Hero

Setting a bitmap fill on a Spark Button control in Flex 4 (redux)

In a previous example, “Setting a bitmap fill on a Spark Button control in Flex 4”, we saw how you could apply a background bitmap fill on a Spark Button control in Flex 4 by creating a custom skin, using the BitmapFill class, and setting the skinClass style.

The following example shows how you can extend the Spark Button class and add a custom style for the background image fill instead of creating several different skins for each bitmap fill.

Continue reading Setting a bitmap fill on a Spark Button control in Flex 4 (redux)