• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 298 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

131. 解析sk资源报错 [ 71%]

...      _templet = new Templet();             _templet.on(Event.COMPLETE,this,parseComplete);             _templet.on(Event.ERROR,this,onError);             _templet.loadAni("res/role/1/left/left.sk");         }                  private function parseCo...

来源: Laya_社区 发布时间: 20170204

132. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 70%]

...etBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(...

来源: Laya2.0_文档 发布时间: 20210715

133. Animator如何监听播放完毕 [ 70%]

...监听播放完毕 版本 2.0.0bate4 , 1.0版本的Animator.on( Laya.Event.COMPLETE ) 方法在2.0.0bate4中行不通 . 那目前如何监听动画播放结束呢 ???? 2018-11-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

来源: Laya_社区 发布时间: 20181105

134. Templet资源删除不掉 [ 70%]

...       factory = new Templet();             factory.on(Event.COMPLETE, this, onSkeletonDataParsed); //            factory.on(Event.ERROR, this, onError); //            factory.parseData(texture, data, 60);             factory.loadAni("res/Dragon.sk");     ...

来源: Laya_社区 发布时间: 20160902

135. 求解关于跨域的具体操作 [ 70%]

...r('Content-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添...

来源: Laya_社区 发布时间: 20180704

136. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 70%]

...TempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton....

来源: Laya2.0_文档 发布时间: 20210715

137. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 70%]

...es/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); }   function onError() { trace("error"); }   function parseComplete() { Laya.stage.on(Event.CLICK, this, () => {     ...

来源: Laya_社区 发布时间: 20181120

138. 分享:Dragonbones/Spine的换肤操作 [ 70%]

...ragonDragon/DragonDragon.sk');//加载龙骨动画数据 templete.on(Event.COMPLETE,this,onPleteComed);//数据解析完成后的调度事件。 } private function onPleteComed():void { skeleton=templete.buildArmature(1);//创建动画,类型:1 支持换装 skeleton.pos(150,250);//动画位置 s...

来源: Laya_社区 发布时间: 20170324

139. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 70%]

...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这里处...

来源: Laya2.0_文档 发布时间: 20210715

140. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 69%]

...var req = new laya.net.HttpRequest();         req.on(laya.events.Event.COMPLETE, this, cb_onSuccess);         req.on(laya.events.Event.ERROR, this, cb_onFail);         req.send(url);      }      // 下载jpg图片成功后,显示在舞台上,response为 bmp图片二进制    ...

来源: Laya_社区 发布时间: 20170103