Just a quick post to display how to embed an image in a flex panel or title window. I’ve been adding them some to justcars.ie
<code>
<mx:Panel xmlns:mx=”http://www.adobe.com/2006/mxml” width=”100%”
height=”100%” ”
title=”Search”
titleIcon=”{ico}”>
</code>
Then just add to the action script an ico var noting the icon source:
[Embed(source='iconSearch.png')]
private static const ico:Class;
One thing to bear in mind is that the icon must be in the same dir as the component.