Style Flex


    
    xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
    initialize="init()">
     
         
        [Embed("a.gif")] 
        public var os:Class; 
        [Embed("a.gif")] 
        public var ds:Class; 
        [Embed("a.gif")] 
        public var us:Class; 
        private function init():void { 
            styleManager.getStyleDeclaration("mx.controls.Button").setStyle("upSkin", us); 
            styleManager.getStyleDeclaration("mx.controls.Button").setStyle("overSkin", os); 
            styleManager.getStyleDeclaration("mx.controls.Button").setStyle("downSkin", ds); 
        }