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

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Graphics » IconScreenshots 
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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.