大约有 2,539 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1916) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...ineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); }加载方式用的官方案例,本地跑是没问题的 2021-12-07 0 0 分享 微博 QZONE 微信 northTg 赞同来自: 有...
来源: Laya_社区 发布时间: 20211207
...te"; } //监听QQ内置浏览器切换至后台事件 window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInput...
来源: Laya_社区 发布时间: 20171011
...回复 Laya_XS 赞同来自: 显示对象失去焦点后调度,会调用Event.BLUR 显示对象获得焦点后调度,会调用Event.FOCUS 你在点击第一个input后,输入键盘会把画布弹起来,这时你是没办法点击下面那个输入框的,你需要在输入键盘收齐后...
来源: Laya_社区 发布时间: 20170220
...t ResInfo.onLoaded (http://127.0.0.1:65353/game/code.js:12995:61) at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:711:59) at ResInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28) at LoaderManager.__proto._endLoad (http://127.0.0.1:65353/game/code.j...
来源: Laya_社区 发布时间: 20180228
...lay(0); //失去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示...
来源: Laya2.0_文档 发布时间: 20210715
...毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sp...
来源: Laya3.0_文档 发布时间: 20251010
...10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:38985:25) at EventHandler.__proto.run (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:649:27) at TabEx.__proto.event (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/laya.js:442:53) at Ta...
来源: Laya_社区 发布时间: 20170908
... 2 个回复 cuixueying 赞同来自: 你试下,给Laya.Stage监听一个Event.RESIZE事件,在RESIZE的回调里重置下适配模式看下能不能避免这个问题! 2017-07-07 0 4 分享 微博 QZONE 微信 yung 赞同来自: 如果不下移,那么上面会被地址栏挡着一部分,...
来源: Laya_社区 发布时间: 20170707
...lay(0); //失去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… ``` ### 六、音乐与音效播放的完整示例 该示...
来源: Laya2.0_文档 发布时间: 20210714
...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label UIComponent Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherit...
来源: Laya2.0_api 发布时间: 20190513