Custom Button Style : Button « Components « Flex






Custom Button Style

Custom Button Style
    
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Style>
    @namespace mx "http://www.adobe.com/2006/mxml";
        mx|Button{
            font-family:Arial;
            font-size: 16px;
            color:#999999;
        }
        .customButtonStyle{
            font-family:Verdana;
            font-size: 12px;
            color:#000000;
        }
    </mx:Style>
    <mx:Button label="regular button"/>
    <mx:Button label="customButtonStyle button" styleName="customButtonStyle" y="35"/>
</mx:Application>

   
    
    
    
  








Related examples in the same category

1.Making use of the Grid containerMaking use of the Grid container
2.Set Button iconSet Button icon
3.Handle Button click eventHandle Button click event
4.Set Button Label and Font sizeSet Button Label and Font size
5.Call your method in Button click eventCall your method in Button click event
6.Use CSS to set Button fade effectUse CSS to set Button fade effect
7.Change Button labelChange Button label
8.Remove a button from the application when the user presses itRemove a button from the application when the user presses it