大约有 345 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
Laya_社区(272) Laya2.0_文档(21) Laya2.0_示例(10) Laya_示例(9) Laya3.0_文档(9) laya_api(8) Laya3.0_api(8) Laya2.0_api(8)
... sp[j + i * 10].pos(i * 60, j * 60); sp[j + i * 10].on(Laya.Event.MOUSE_OVER, this, over); sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out); } } function over(e) { e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) { //正常大家可能...
来源: Laya_社区 发布时间: 20160715
.../mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, cha...
来源: Laya_社区 发布时间: 20170818
...-debug-core\out\src\chrome\chromeDebugAdapter.js:156:59) at emitOne (events.js:90:13) at Client.emit (events.js:182:7) at Client.processMessage (c:\Program Files (x86)\laya\resources\app\extensions\laya-debug\node_modules\noice-json-rpc\lib\noice-json-rpc.js:64:18) at Logging...
来源: Laya_社区 发布时间: 20170210
... */ //*/强迫保持原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp); channel = sound.play(); }catch(error:Error){}; //*/ } protected function onWakeUp(event:SampleDataEvent):void { event.data.position = event.data.length = 4096 * 4; } 这是...
来源: Laya_社区 发布时间: 20180627
...h(config); console.log(`Running 'rollup watcher'...`); let tS; watcher.on('event', (event) => { // event.code 会是下面其中一个: // START — 监听器正在启动(重启) // BUNDLE_START — 构建单个文件束 // BUNDLE_END — 完成文件束构建 // END — 完成所有文件...
来源: Laya_社区 发布时间: 20201223
...调参数错误 重现步骤: 1、绑定键盘事件 Laya.stage.on(Event.KEY_DOWN, this, this.onStartMove); 2、打印 回调事件 onStartMove的 event参数,即可得到上图 版本: LayaAir 3.0.5 希望流程: 返回 正常的键盘 keyCode,如示例文档 附件 : --> 2023-10-1...
来源: Laya_社区 发布时间: 20231012
...是引擎的bug。 Chrome控制台有警告,描述:Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 但是好像之前也有,所以...
来源: Laya_社区 发布时间: 20190211
用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 package tcp { import laya.events.Event; import laya.net.Socket; import laya.utils.Byte; public class CConnector extends Socket { protected ...
来源: Laya_社区 发布时间: 20170920
...切入切出,导致背景声音不播放问题。 Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus); private onBlur() { // 暂停所有需要停止的逻辑 console.log("onBlur"); SoundManager.Instance.pau...
来源: Laya_社区 发布时间: 20250930
... layaair2-cmd compile报错 [15:46:08] Starting 'compile'... stderr: events.js:167 throw er; // Unhandled 'error' event ^ SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' exit:1 但是我是新创建的代码,一行代码都没改动 附件 ...
来源: Laya_社区 发布时间: 20190924