大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
...径 var skin = "./res/img/btn_test.png"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Bu...
来源: Laya2.0_文档 发布时间: 20210714
...景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个Button实例 var btn:Laya.Button = new Laya.Button(this.skin); //将Button添加到舞台上 La...
来源: Laya2.0_文档 发布时间: 20210714
...ore.js:1039) at Loader.complete (laya.core.js:18862) at Loader.onLoaded (laya.core.js:18818) at EventHandler.runWith (laya.core.js:998) at HttpRequest.event (laya.core.js:1039) at HttpRequest.complete (laya.core.js:18456) at HttpRequest._onLoad (laya.core.js:18427...
来源: Laya_社区 发布时间: 20200824
...iew.__proto.show (LayaUISample.max.js:42743) at LayaUISample.__proto.onLoaded (LayaUISample.max.js:1135) at Handler.__proto.runWith (LayaUISample.max.js:701) at ResInfo.loadComplete (LayaUISample.max.js:18073) at EventHandler.__proto.runWith (LayaUISample.max.js:702) at...
来源: Laya_社区 发布时间: 20180725
... { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传...
来源: Laya2.0_文档 发布时间: 20210715
...on") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui/share@atlas0.png"))//此处会报循环引用错误,也就Android...
来源: Laya_社区 发布时间: 20180609
...g" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图片我传到...
来源: Laya_社区 发布时间: 20180314
...码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180307
...如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170316
...54) at AnimationTemplet.__proto.onAsynLoaded (laya.ani.js:3186) at ResInfo.onLoaded (laya.core.js:11855) at EventHandler.__proto.runWith (laya.core.js:674) at ResInfo.__proto.event (laya.core.js:453) at LoaderManager.__proto._endLoad (laya.core.js:11963) at Loader.onLoaded (laya.core.js:11942) ...
来源: Laya_社区 发布时间: 20170922