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

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

361. l龙骨动画内存上升 [ 79%]

...    Laya.stage.bgColor = "#ffffff";             Laya.stage.on(Event.CLICK, this, play);         }                  function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/Bi...

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

362. FrameAnimation complete事件回掉参数为undefinend [ 79%]

...var ani1:Laya.FrameAnimation = this.ani1; ani1.play(0,false); ani1.on(laya.events.Event.COMPLETE,this,this.onPlayEnd); onPlayEnd(evt) { //evt 居然是undefinend。事件机制还能用吗? } 2017-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

363. 感觉实例之间是关联的,求指教。(已解决) [ 79%]

...ageName) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.Event.MOUSE_UP, this, this.hit); //this.img.on(Laya.Event.) } var _proto = Poker.prototype; _proto.show = function () { this.imag.y = 50; } _proto.hit = function () { if ( this.imag.y == 50) { this.imag.y = 150; } else if(thi...

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

364. video.on('complete', this, onPlayEnd);视频播完为何不触发“complete”? [ 79%]

...ayEnd);视频播完为何不触发“complete”? function onPlayEnd(evt:Event){ trace("video complete"); } 为何视频播完不触发呢? http://layaair.ldc.layabox.com ... Video 这里要是可以调试该多好~ 2017-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

365. 背景音乐文件太大 播放延迟 [ 79%]

...        this.mask_value = value                 EventMgr.eventManager.event(EventMgr.EVENT_LIST)             }), Laya.Loader.SOUND, 0, true, null, false)         })       public static playBackGroundMusic(url: string, start: number) {  ...

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

366. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 79%]

...tp = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传...

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

367. 使用方向键 控制精灵在格子中移动 [ 79%]

... 可以加我的微信 一起研究 13890999   事件 Laya.stage.on(Laya.Event.KEY_UP,this,this.onkeyup); Laya.stage.on(Laya.Event.KEY_DOWN,this,this.onkeydown); Laya.timer.frameLoop(1,this,this.loop);事件响应 onkeyup(e){ for(let i:number = 0;i<this.keyList.length;i++){ if(this.keyList[i]==e...

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

368. laya.spine.js问题以及spine.core.js问题 [ 79%]

... 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

369. Skeleton 类播放完成一遍后有没事件或者回调 [ 79%]

...4 是的,如果play的第二个参数是true,监听mArmature.player.on(Event.COMPLETE,this,onComplete);即可 如果play的第二个参数是false,监听mArmature.on(Event.STOPPED, this, completeHandler);即可!   2017-08-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: sketon.pla...

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

370. Spine骨骼动画点击区域偏移 获取不到width height [ 79%]

...i(`../bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComplete(x, y) {         this._factory.off(Laya.Event.COMPLETE, this, this.parseComplete);         var sprite = this._factory.buildArmature...

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