aswing换肤

1 首先要把Aeon.swf加载进来
                     var myurl:String = "./Aeon.swf";
                var requst:URLRequest = new URLRequest(myurl);
                var myload:loader = new Loader();
                myload.load(requst);
                myload.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);

2 加载完后捆绑到AeonLAF 然后调用UIManager.setLookAndFeel方法  而且还要记得刷新 updateAllComponentUIInMemory

         private function completeHandler(e:Event)
        {
                var _obj:Object = e.target.applicationDomain.getDefinition("aeon.AeonLAF");
                UIManager.setLookAndFeel(new _obj());
                AsWingUtils.updateAllComponentUIInMemory();
        }

你可能感兴趣的:(function,object,String)