How to set icon to a Button in Adobe Flex 2 and 3

First of all create a images directory in your flex project folder, then add your icons to it.
After that remember to set properly the icon attribute of your mx:Button element:

<mx:Button icon=”@Embed(‘/images/youricon.png’)”
   click=”makesomething()”
   toolTip=”This button does…”/>

Leave a comment