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

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

581. IOS真机下监听MOUSE_MOVE事件会报错 [ 67%]

...VE事件会报错 var test = new Laya.Image('img/icon/face.png'); test.x = this.width / 2; test.y = this.height / 2; this.addChild(test); test.on(Laya.Event.MOUSE_MOVE, this, (e) => { console.log(e); }); 监听mouse_move事件后,手指在test上滑动,会报错:   附件 : --> 2017-08-06 ...

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

582. 横竖屏切换,此引擎渲染有BUG [ 67%]

... 横竖屏切换,此引擎渲染有BUG Laya.stage.on(Laya.Event.RESIZE, this, this.OnresizeFn); Laya.stage.alignH = "center";//"left";  Laya.stage.alignV = "middle";//"top";  Laya.stage.screenAdaptationEnabled=true;   oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: boolean): void ...

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

583. AS转换JS运行报错 [ 67%]

...键回调函数中调用DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法   附件 : --> 2017-01-23 添加评论 免费帖 --> 分享 微博 QZ...

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

584. 打包app,http无法设置content-type [ 67%]

...or, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method ===...

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

585. LayaAir引擎与原生Flash的差异文档说明! [ 67%]

...raphics.drawCircle(0,0,50,'#FF0000'); sp.mask=mask; Laya.timer.frameLoop(1,this,function():void { mask.x++; sp.repaint(); });小提示:        LayaAir下,Mask是添加到了显示对象内部,也就是说,LayaAir 下的Mask坐标是相对于被遮罩 对象的,而并非舞台。 c.精...

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

586. Animation 播放完成回调有参数吗 [ 67%]

Animation 播放完成回调有参数吗 Animation.on(Event.COMPLETE, this, bfwc); function bfwc(e){         console.log(e.target.name); }    是错误的 2017-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

587. 2.3.0beta 各种bug [ 67%]

...    }),如果有  async(){ await xxxx }会报这个错误 TS2354: [31mThis syntax requires an imported helper but module 'tslib' cannot be found.   一、万年没修成功过的自定义导出类 自动添加Laya前缀问题 二、切换类库依旧报错 三、拖尾依然没提供重置...

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

588. native打包成app使用FileReader接口readAsArrayBuffer 时app崩溃 [ 67%]

...原因呢     doMsg:function(){                     if(this.msgs.length == 0 || !this.workDone){                         return;                     }                                      var data = this.msgs.shift();   ...

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

589. worker.js 使用问题 [ 67%]

...(!data.dataType || data.dataType !="imageBitmap"){             this.event(data.url,null);             return;         };         var bitmap;         var imageData=data.imageBitmap;         if (Render.isWebGL){             /*__JS__ *...

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

590. Laya IDE横竖屏切换时,不断刷新 [ 67%]

... = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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