大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
... at Texture2D.__proto.onAsynLoaded (laya.d3.js:37329) at ResInfo.onLoaded (laya.core.js:13189) at EventHandler.__proto.runWith (laya.core.js:724) at ResInfo.__proto.event (laya.core.js:494) at LoaderManager.__proto._endLoad (laya.core.js:13347) at Loader.onLoaded (la...
来源: Laya_社区 发布时间: 20190323
...l: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) { let part = new Laya.Particle2D(data); part.emit...
来源: Laya_社区 发布时间: 20170803
..."res/atlas/flicker/image.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); testView.mc.play(0,true); ...
来源: Laya_社区 发布时间: 20170608
...es3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null); 结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导致复用这个loader时,customParse属性不正确。 修改:成功、失败都会走到onLoaded中,此处...
来源: Laya_社区 发布时间: 20180305
....animation); 我通过下面代码方式添加事件,但没有触发this.onLoad方法: this.animation.on(Laya.Event.LOADED, this.animation, this.onLoad); 麻烦问一下,通过动画模版创建动画的方式如何添加Event.LOADED事件? cuixueying • 2017-01-21 12:21 如果是IDE创建...
来源: Laya_社区 发布时间: 20170119
...c:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,this,onLoaded,[mc]); Laya.stage.addChild(mc); } private function onLoaded(mc:MovieClip):void { mc.gotoAndStop(0); } } }我测试是没有问题,注意下,在资源加载完成后再去对你的swf进行控制,你可以试下...
来源: Laya_社区 发布时间: 20170116
...t Texture.<anonymous> (laya.core.js:15911) at Texture.__proto._onLoaded (laya.core.js:15752) at EventHandler.__proto.runWith (laya.core.js:1410) at ResInfo.__proto.event (laya.core.js:1166) at LoaderManager.__proto._endLoad (laya.core.js:14880) at Loader.onLoaded ...
来源: Laya_社区 发布时间: 20200201
...用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new Tab(); Laya.stage.addChild(tab); for(var i:int=0;i<6;i++)//为tab容器添加button { var btn:Button=new Button(); btn.skin="button-4.png"; ...
来源: Laya_社区 发布时间: 20170626
... = "full"; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChil...
来源: Laya2.0_文档 发布时间: 20210714
...s:35 at Handler.__proto.runWith (laya.core.js:1143) at ResInfo.onLoaded (laya.core.js:14787) at EventHandler.__proto.runWith (laya.core.js:1143) at ResInfo.__proto.event (laya.core.js:899) at LoaderManager.__proto._endLoad (laya.core.js:14971) at Loader.onLoaded (...
来源: Laya_社区 发布时间: 20180816