Components Flex



    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    
        
    

    
         
        public function toggleStyle():void { 
            if (cb1.selected == true) { 
                b1.setStyle("color","blue"); 
                b1.setStyle("fontSize", 8); 
            } else { 
                b1.setStyle("color", null); 
                b1.setStyle("fontSize", null); 
            } 
        } 
      
    

    
        @namespace s "library://ns.adobe.com/flex/spark"; 
        s|Button {
            color: red; fontSize: 25; 
        }
    

    
            click="toggleStyle()" selected="false" color="Black" />