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();
}
aswing换肤
最新推荐文章于 2018-03-07 08:42:36 发布
本文介绍了如何使用ActionScript加载并应用Aeon.swf作为UI主题。首先通过URLRequest加载指定路径下的Aeon.swf文件,之后将加载完成的SWF文件绑定到AeonLAF,并调用UIManager.setLookAndFeel方法来更新所有内存中组件的UI。
3549





