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

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

1. Cannot read property 'events' of undefined [ 100%]

Cannot read property 'events' of undefined 打包微信后,提示events为空.Object.defineProperty(laya.events.EventDispatcher.prototype,"_events",{enumerable:false,writable:true}); 手动log"laya"时发现为undefined 附件 : --> 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

2. Cannot read property 'offCanplay' of null [ 98%]

...地方,用到,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 onCanPlay() { this.loaded = t...

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

3. App websocket out of memory [ 97%]

... testWebSocket(){ let client = new PinusWSClient(); client.on(PinusWSClientEvent.EVENT_IO_ERROR, (event) => { }); client.on(PinusWSClientEvent.EVENT_CLOSE, (event) => { //触发条件,手机端把网全关了 this.testWebSocket();//这种方式会导致在短时间内App的websocket out of m...

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

4. TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. [ 96%]

TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. 按照官方实例骨骼动画里的多纹理写的代码。 一运行就报这个错误   附件 : --> demo.zip 2018-03-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

5. eError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. [ 95%]

eError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. 把项目运行在编译器中,切到后台一会就会报这个错 2017-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

6. 发布微信小游戏,报错Cannot read property 'events' of undefined [ 95%]

发布微信小游戏,报错Cannot read property 'events' of undefined 项目发布后报错,自己的项目用的1.7.16 下载了官方的实例发布后的code跟自己的code比对了下··对应位置的代码是不一样的, 同时我将项目的引擎升级到1.7.20,依然在报错...

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

7. error TS2339: Property 'delta' does not exist on type 'Event'. [ 94%]

error TS2339: Property 'delta' does not exist on type 'Event'. IDE版本号:1.7.17 2018-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 你查看下你的代码是否有问题那...

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

8. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 93%]

...rawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMouseUp);             Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp);   } private function onMouseDown(e:Event):void {...

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

9. import Event = laya.events.Event; 报错 [ 91%]

import Event = laya.events.Event; 报错 import Event = laya.events.Event; 报错 file: 'file:///e%3A/Web/GameA/client/src/GameMain.ts' severity: '错误' message: 'Import declaration conflicts with local declaration of 'Event'' at: '5,1' source: 'ts' 项目中没有其他地方写这个import, 但...

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

10. TypeError: relativePath is undefined [ 89%]

...15952728807 • 2017-12-05 15:44 (function() { var Stage = Laya.Stage; var Event = Laya.Event; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var tiledMap; var mLastMouseX = 0; var mL...

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