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

大约有 345 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)

81. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 82%]

...创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第...

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

82. MovieClip报错 [ 82%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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

83. Laya2.1.1 示例工程发布vivo小游戏报错 [ 82%]

... [0]create@(no filename):6700 [1]__proto.run@(no filename):2271 [2]__proto.event@(no filename):2221 [3]__proto._checkNext@(no filename):5620 [4]__proto.onOneLoadComplete@(no filename):5620 [5]__proto.run@(no filename):2271 [6]__proto.event@(no filename):2221 [7]__proto._endLoad@(no filename):5576 [8...

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

84. 引擎加载动画过程中断网,动画还会继续加载吗? [ 81%]

...过程中断网,动画还会继续加载吗? 引擎加载动画完成的 event.complet 事件,在加载动画过程中断网,然后重连网络后,该事件一直没有被触发?请问有什么解决方案吗? 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

85. 手机调试时http请求错误,返回Request failed Status:0 [ 81%]

...段: let hr = new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event...

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

86. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 81%]

...息 var req:HttpRequest = new HttpRequest();             req.once(Event.COMPLETE, this, function():void             {                 trace(req.data);             });             req.once(Event.ERROR, this, function():void             {    ...

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

87. laya.spine.js问题以及spine.core.js问题 [ 81%]

... this.parseSpineAni(); return; } if (this.assetManager.hasErrors()) { this.event(Event.ERROR, "load failed:" + this.assetManager.getErrors()); return; } Laya.timer.frameOnce(1, this, this.loop); }         ==========================================================================           ...

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

88. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 81%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

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

89. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 81%]

...。因此实例化socket之后四个事件是我们必须监听的: ``` Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必要的,这也是我...

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

90. spine 播放错乱 [ 81%]

...mplet(); this.templet.loadAni("spine/10101001.json"); 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.skelet...

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