Adobe Flex Transparency not working on Button icon
Posted
by johnc
on Stack Overflow
See other posts from Stack Overflow
or by johnc
Published on 2009-11-01T23:44:27Z
Indexed on
2010/03/30
20:53 UTC
Read the original article
Hit count: 883
flex
|transparency
I am fairly inexperienced with Flex, but my googling has retrieved nothing to suggest this is an obvious question.
I have an mx:Button with an Icon on it that is a png file with a transparent background, as below, however the transparency is not working, and the icon is painted with a white background.
<mx:Button label="Button" icon="@Embed(source='images/clearTracks.png')"/>
I have seen how to use a ByteArrayImage to get a transparency working on an image, but this technique doesn't appear available for a button's icon property.
© Stack Overflow or respective owner