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

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

341. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 69%]

...= Browser.window.URL.createObjectURL(blob);//创建一个url对象; //用loader来加载url Laya.loader.load(url, Handler.create(this,showImg,[url]),null,Loader.IMAGE); } private function showImg(url:String):void { var t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphic...

来源: Laya2.0_文档 发布时间: 20210714

342. 背景音乐能缓存吗? [ 69%]

...被折叠 要回复问题请先登录 发起人 C_jx 相关问题 请问下loader如何强制加载一个文件,避免浏览器的缓存 求教: soundManager如何停止正在播放的背景音乐 Animation 的createFrames 使用已经加载的图集缓存动画失败 请教下微信小游戏的...

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

343. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 69%]

...j.com/api/player/auth/img?key=testpng oppo小游戏下 无法显示  Laya.loader .load( "https://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发...

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

344. [LayaAir3]3.0版本资源销毁后_referenceCount不会变成0,2.0版本是正常的可以变为0 [ 69%]

...后_referenceCount不会变成0,2.0版本是正常的可以变为0 Laya.loader.load('resources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码...

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

345. 分享-js资源进度加载 [ 68%]

...gress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: "images/4.png", type: Laya.Loader.IMAGE } , { url: "images/5.jpg", type: Laya.Loader.IMAGE } , { ur...

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

346. SoundManager第一次加载播放延迟怎么解决? [ 68%]

...播这个bgm.mp3,如何预加载呢 cuixueying • 2016-11-30 15:06 Laya.loader.load("xxx.mp3",Handler.create(this,onComplete),null,Loader.SOUND) daohu • 2016-11-30 18:09 @cuixueying:好的,这样写后,SoundManager.playMusic("../../../../res/sounds/bgm.mp3", 1, new Handl...

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

347. Image和HtmlImageElement加载同一张图会显示不出来 [ 68%]

...; 10; ++i) {      var url:String = "res/xxx" + i + ".png";      Laya.loader.load(url); }   // 先Image var img:Image = new Image(); img.skin = "res/test1.png"; img.pos(100, 100); // 再Html var html = new HTMLDivElement(); html.innerHTML = "<img src='res/test1.png'/>"; html.pos(150, 10...

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

348. LayaUI中的input组件不显示 [ 68%]

...dres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })();   附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

349. 背景音乐来回切换报错 [ 68%]

...ad 再play  let dreamsSound:Laya.SoundChannel = null         Laya.loader.load("res/dreams.mp3",Laya.Handler.create(this,function(){             dreamsSound = Laya.SoundManager.playMusic("res/dreams.mp3")         }))          let mainSound:Laya.SoundChannel = nul...

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

350. 请问如何释放atlas和他的png资源 [ 68%]

...ction clickFun():void { url = "res/CH/atlas/MORNUI_Z_Gongneng.atlas"; Laya.loader.load(url,new Handler(this,hh)); //trace( Laya.loader.getRes(url) ); } private function hh():void { Laya.stage.addChild(new Image("MORNUI_Z_Gongneng/clip_xue_quan.png")); Laya.timer.once(1000,1,ddd); } private function ...

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