Style Flex



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

    
         
        public function toggleStyleSheet():void { 
        if (cb1.selected == true) { 
            styleManager.loadStyleDeclarations("../assets/ButtonStyles.swf", true); 
            styleManager.loadStyleDeclarations("../assets/LabelStyles.swf", true); 
        } else { 
            styleManager.unloadStyleDeclarations("../assets/ButtonStyles.swf", true); 
            styleManager.unloadStyleDeclarations("../assets/LabelStyles.swf", true); 
        } 
        } 
      
    

    
    
            click="toggleStyleSheet()" selected="false" />