If your PNG files aren’t displaying with their transparent areas transparent, take a look at this post by Doug McCune. While it’s title is Problem with Transparent PNGs in Flex using @Embed, it also solved my problem which didn’t involve @Embed.

Simply stated, I couldn’t get transparency when trying to display a PNG in an Image component. Once I applied Doug’s solution, the problem disappeared.

It’s not clear why most PNGs work fine in Image but a few don’t. Doug seems to think that it may have something to do with how the PNG is encoded. In any case, Doug’s fix seems to remove the problem. Perhaps Adobe should incorporate his fix into the standard Image component.

Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word