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

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

351. 排坑:Laya.HttpRequest()无效 [ 79%]

...a.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log...

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

352. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 79%]

...序API dialog 自定义关闭效果,效果执行完,弹窗无法关闭 event自定义事件的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 请问如何使我的自定义类...

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

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

354. 感觉实例之间是关联的,求指教。(已解决) [ 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

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

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

357. 使用方向键 控制精灵在格子中移动 [ 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

358. 背景音乐文件太大 播放延迟 [ 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

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

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