3,423
社区成员
发帖
与我相关
我的任务
分享
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler, false, 0, true);
var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
loader.load(new URLRequest(ResPath.res_host + "base/resource.swf"), context);
private function onCompleteHandler(event:Event):void
{
var def:Object = ApplicationDomain.currentDomain.getDefinition(ResLib.UI_GAME_GUI_HERO_BAG);
trace("load success");
}
private function onCompleteHandler(event:Event):void
{
var def:Object = LoaderInfo(event.currentTarget).applicationDomain.getDefinition(ResLib.UI_GAME_GUI_HERO_BAG);
trace("load success");
}