Adding an icon to the button : Icon « Graphics « Flex






Adding an icon to the button

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>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Bind icon to classBind icon to class
2.Use iconFunction to determine the icon to displayUse iconFunction to determine the icon to display
3.Set the default leaf icon to null to hide it, and uses custom icons for the folder open and closed iconsSet the default leaf icon to null to hide it, and uses custom icons for the folder open and closed icons