大约有 127 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...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
...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
...: 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
...WorkerLoader.workerPath设置为"libs/worker.js";,则加载不成功,complete回调不会被调用 2018-12-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 185*****515 赞同来自: 我也遇到了 请官方...
来源: Laya_社区 发布时间: 20181206
...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
...调试,最终发现是MiniSound的onCanPlay没有被调用,也就没有complete事件触发,同样的error事件也没有触发,于是就卡住了,触发不了批量加载全部完成的回调。 我猜测,是微信的InnerAudioContext实例,在设置了src属性之后,并...
来源: Laya_社区 发布时间: 20181026
...景音乐无效的解决方案 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
...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
... "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
...动画完成后播放站立动画 shared.on(Event.COMPLETE,this,onAniComplete,[ani]); //播放攻击动画 ani.play(); 在unity里测试正常,导出的时候也生成了 lani文件,和Lm同放在上面的网络地址里,...
来源: Laya_社区 发布时间: 20180118