大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
...接 提交 2 个回复 *%〈~〉 赞同来自: if (preLoadedMap[url]) { onLoaded(preLoadedMap[url]); } else { ////////////////////////////////////////////////////// //jiaz加载kasi加载卡死wenti if(Browser.onVVMiniGame) {// _http = new HttpRequest(); _http.on(Event.PROGRESS, this, onProgress);...
来源: Laya_社区 发布时间: 20201123
... at LoaderManager.__proto._endLoad (laya.core.js:11993) at Loader.onLoaded (laya.core.js:11972) at EventHandler.__proto.runWith (laya.core.js:681) at Loader.__proto.event (laya.core.js:460) at Loader.__proto.endLoad (laya.core.js:11621) (anonymous) @ laya.core.js:127 Test ...
来源: Laya_社区 发布时间: 20170621
...l: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); 类似于this.onLoaded函数,还有哪些生命周期相关的回调呢。 我想在UI完全加载完毕后,完成一些init操作,this.onLoaded方法中无法获取采用相对布局的控件大小信息。...
来源: Laya_社区 发布时间: 20170720
...er.IMAGE}, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2)); Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.pn...
来源: Laya_社区 发布时间: 20180531
...的时候,源码里这一步会的url为“”的时候,会执行this.onLoaded(null)这一步_ _proto.load=function(url,type,cache,group,ignoreCache,useWorkerLoader){ (cache===void 0)&& (cache=true); (ignoreCache===void 0)&& (ignoreCache=false); ...
来源: Laya_社区 发布时间: 20200427
...【1】打开Loader类,发现在调用load时,如果为null就会调用onLoaded(null);问题来了。继续看。 【2】继续看到写的onloaded方法原型: protected function onLoaded(data:* = null):void 默认值允许为null. 但方法内又没有对data进行null值检测,所以...
来源: Laya_社区 发布时间: 20190709
...e : Laya.Loader.IMAGE}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded)); } function onLoaded() { var res_array = [ {url : "res/atlas/comp.atlas", type : Laya.Loader.ATLAS}, ] Laya.loader.load(res_array, Handler.create(null, onLoaded2)); } function onLoaded2() { Laya.stage.addChild(new ...
来源: Laya_社区 发布时间: 20180803
....init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { image.skin="bg.jpg"; } } }方...
来源: Laya_社区 发布时间: 20170628
... 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.pl...
来源: Laya_社区 发布时间: 20180817
...。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。 代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import ui.EffectAnimationDemoUI; public class Main{public f...
来源: Laya_社区 发布时间: 20190708