Create a Button control, and sets its icon property by using the @Embed() directive
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Button label="Icon Button" icon="@Embed(source='a.gif')"/> </mx:Application>