Adding an icon to the button
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Button label="my button" icon="@Embed(source='logo.jpg')"/> </mx:Application>