1 Reply Latest reply on May 28, 2015 2:57 AM by smudri

    Apache Flex Spark Button Icon

    F.Bowman Level 2

      How does one go about adding an icon to a Spark button now?

       

      I have an embedded imaged. I've tested that I can display it in a BitmapImage. So the image is embedded properly and works. Since there is no icon property anymore, I've tried using the iconDisplay property and assigning my BitmapImage to it. No icon displays. The button displays without the image.

      I've also tried using a custom Skin and adding a BitmapImage in there with the id as iconDisplay. That cause an exception.

       

      There is no clear documentation to be found on how to set an icon for a Spark button now. I need some help with this. Google searches aren't turning up much.