大约有 325 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0051 秒)
图片加载问题 var s:Sprite = new Sprite; s.loadImage("res/soil.png"); Laya.stage.addChild(s); chrome报错:Access to Image at 'file:///E:/study/LayaAirStudy/bin/h5/res/soil.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed acces...
来源: Laya_社区 发布时间: 20170116
...来自: 1、再IDE面板不能预览SWF动画 2、原生swf可以放到bin/res/目录下,但是swf文件需要使用layaAir IDE转换工具进行一次转换,转换后的swf资源需要放到bin/h5目录下,该h5目录即为h5项目的根目录,相当于原生项目的bin目录。 3、swf转...
来源: Laya_社区 发布时间: 20170204
##版本管理的功能介绍  关于版本管理,最开始是采用链接后加随机数的方式来管理,但是微信等环境下,缓存问题很严重,随机数方式并不能有效解决缓存问题,还是会出现因更新版本导致页面混乱等现象...
来源: Laya2.0_文档 发布时间: 20210715
##版本管理的功能介绍  关于版本管理,最开始是采用链接后加随机数的方式来管理,但是微信等环境下,缓存问题很严重,随机数方式并不能有效解决缓存问题,还是会出现因更新版本导致页面混乱等现象...
来源: Laya2.0_文档 发布时间: 20210714
Laya.SoundManager.playSound报错 Laya.SoundManager.playSound("res/sound/bullet.mp3");官方的飞机教程,同样插入音效会报错 附件 : --> 2018-06-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 ...
来源: Laya_社区 发布时间: 20180614
##版本管理的功能介绍  关于版本管理,最开始是采用链接后加随机数的方式来管理,但是微信等环境下,缓存问题很严重,随机数方式并不能有效解决缓存问题,还是会出现因更新版本导致页面混乱等现象...
来源: Laya2.0_文档 发布时间: 20210715
... = "https://XXX/wechat/vsgouzi/1/"XXX; Laya["MiniAdpter"].nativefiles = [ "res/", "part/", "Loading/", "LocalConfigFiles/JsonFiles/" ] res 文件 及part文件夹 Loading文件夹 内的文件都无法加载 2020-01-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...
来源: Laya_社区 发布时间: 20200102
...atlas文件,何解???例如官方的例子:Laya.loader.load(["./res/atlas/ListPage.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas 附件 : --> 2017-09-04 添加评论 免...
来源: Laya_社区 发布时间: 20170904
...来自: 先打开编辑模式,导出一下,然后把图片放到"bin/res/atlas”下, 代码如下 var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/atlas/—.png"); 2017-11-08 0 2 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20171108
...GameUiTest.js this.imaAudioLocal.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "res/audio/sound_click.wav"; Laya.SoundManager.playSound(resUrl, 1); }); this.imaAudioNet.on(Laya.Event.CLICK, this, ()=>{ let resUrl = "https://具体地址见工程代码/h5/gun_res/v6/res/audio/hit.wav"; Laya.S...
来源: Laya_社区 发布时间: 20200225