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

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

151. 为什么手机端网页播放8k的音频要点一下才能播放,因为下载慢吗,电脑端网页都不用 [ 74%]

...示例,SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, this.onComplete));初始化的时候有load资源Laya.loader.load(this.soundPath, Handler.create(this, this.setup)); 2019-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

152. 网络和格式-XML [ 74%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { let xmlValueContainsError = "item aitem bsomethis..."; let xmlValue = "item aitem bsomethings..."; this.proessXML(xmlValueContainsError); console.log("\n"); this.proessXML(xmlValue); } // 使用xml p...

来源: Laya2.0_示例 发布时间: 20251130

153. iframe嵌入laya做的html5,手机端浏览时iframe处不响应触摸滑动? [ 73%]

...是一片空白。代码如下,希望可以得到您的回复,谢谢~ this.iframe = Laya.Browser.document.createElement("iframe"); this.iframe.style.position ="absolute";//设置布局定位。这个不能少。 this.iframe.style.zIndex = 1000;//设置层级 this.iframe.style...

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

154. Sprite-节点控制 [ 73%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createApes(); } createApes() { const Sprite = Laya.Sprite; let monkey2Path = "res/apes/monkey2.png"; this.ape1 = new Sprite(); this.ape2 = new Sprite(); this.ape1.loadImage(monkey2Path); this.ape2.loadImage(monkey2Path);...

来源: Laya2.0_示例 发布时间: 20251130

155. 骨骼动画-藤蔓 [ 73%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Ev...

来源: Laya2.0_示例 发布时间: 20251130

156. UI-ColorPicker [ 73%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onColorPickerSkinLoaded)); })(); function onColorPickerSkinLoaded() { var colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHan...

来源: Laya_示例 发布时间: 20251130

157. 骨骼动画-橡胶人 [ 73%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactor...

来源: Laya2.0_示例 发布时间: 20251130

158. 鼠标交互-自定义事件 [ 73%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; this.sp = new Sprite(); this.sp.graphics.drawRect(0, 0, 200, 200, "#D2691E"); this.sp.pivot(100, 100); this.sp....

来源: Laya2.0_示例 发布时间: 20251130

159. 计时器-间隔循环 [ 73%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频...

来源: Laya2.0_示例 发布时间: 20251130

160. worker的问题 [ 73%]

...接报错了 "Failed to construct 'Worker': Please use the 'new' operator, this DOM object constructor cannot be called as a function." 2018-01-08 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 还要在index.html中写啊,我以为在as3脚本里写就行了? 2018-01-08 0 1 分享 微...

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