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

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

31. laya.ani.swf.MovieClip [ 71%]

...sPath:String = null):void 加载资源。 MovieClip loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取...

来源: Laya2.0_api 发布时间: 20190513

32. 使用IDE制作的动画在pc模拟器播放OK在手机端显示 [ 70%]

...e(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01...

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

33. 怎么播放声音? [ 70%]

...:   var bg_sound:Laya.Sound =new Laya.Sound(); bg_sound.on(Laya.Event.COMPLETE,this,this.loadcom_f); bg_sound.on(Laya.Event.PROGRESS,this,this.loadcom_f); bg_sound.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("-----------...

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

34. LayaAir 2.0 WorkerLoader无效 [ 69%]

...WorkerLoader.workerPath设置为"libs/worker.js";,则加载成功,complete回调会被调用 2018-12-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 185*****515 赞同来自: 我也遇到了 请官方...

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

35. laya.net.Loader_API3.0 [ 68%]

...y> load(url: string | ILoadURL | (string | Readonly<ILoadURL>)[], complete?: Handler, progress?: Handler, type?: string, priority?: number, cache?: boolean, group?: string, ignoreCache?: boolean, useWorkerLoader?: boolean): Promise<any> Defined in laya/net/Loader.ts:204 加载资源...

来源: Laya3.0_api 发布时间: 20231115

36. [分享]微信小游戏声音资源批量加载卡住,临时解决方案 [ 68%]

...调试,最终发现是MiniSound的onCanPlay没有被调用,也就没有complete事件触发,同样的error事件也没有触发,于是就卡住了,触发了批量加载全部完成的回调。        我猜测,是微信的InnerAudioContext实例,在设置了src属性之后,并...

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

37. 个人笔记:失焦或静音状态下播放背景音乐无效的解决方案 [ 67%]

...景音乐无效的解决方案  SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); if(!url) return null; SoundManager._recoverWebAudio(); url=URL.formatURL(url); if (url!=SoundManager._tMusic)...

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

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

...ROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传输失败后返回 //post数据的写法 console.log(JSON.stringify(request)); this....

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

39. 网络通信 · LayaAir3文档 · LAYABOX [ 64%]

... "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度。 * @eventType Event.ERROR * */ /*[Event(name = "error", type = "laya.events.Event")]*/ 2.1.4 在代码中怎么使用 Laya...

来源: Laya3.0_文档 发布时间: 20250104

40. 3D动画无法播放 [ 64%]

...动画完成后播放站立动画             shared.on(Event.COMPLETE,this,onAniComplete,[ani]);             //播放攻击动画             ani.play(); 在unity里测试正常,导出的时候也生成了 lani文件,和Lm同放在上面的网络地址里,...

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