Search code examples
flex4mxmlc

Embeding image in Flex 4 spark button control


How can I embed an image in Flex 4 button control? I found one here, but its for flex 3 mx controls. I just want an image above a text label on the button for accessibility reasons. Can someone suggest any technique both using skins and not using them ?


Solution

  • You can use Flex 4.5 SDK latest build http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+Hero - Spark Button now has "icon" property