大约有 136 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0042 秒)
Laya_社区(78) laya_api(14) Laya2.0_api(13) Laya3.0_文档(10) Laya2.0_文档(10) Laya3.0_api(5) Laya2.0_示例(5) Laya_示例(1)
...部分机型(一部XR)StageX不对 //注册事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseE...
来源: Laya_社区 发布时间: 20230619
... Laya.stage.addChild(b); b.on(Event.MOUSE_DOWN, this, mouseHandler); b.on(Event.MOUSE_MOVE, this, mouseHandler); b.on(Event.MOUSE_UP, this, mouseHandler); trace("addEvent")...
来源: Laya_社区 发布时间: 20170517
...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.s...
来源: Laya_社区 发布时间: 20180211
...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private...
来源: Laya_社区 发布时间: 20180210
... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...
来源: Laya_社区 发布时间: 20171202
...在2.0版本的js中,如何获取mouse_move的鼠标坐标 img.on(Laya.Event.MOUSE_MOVE,this,this.onmousemove); apesCtn.addChild(img); ........ onmousemove(e) { //console.log("e="+JSON.stringify(e)); for (var property in e) { console.log(property+"="+e[property]); } console.log("==================...
来源: Laya_社区 发布时间: 20181031
... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...
来源: Laya_社区 发布时间: 20181112
... (index > 5) index = 5; this.setCurPage(index) } public onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -...
来源: Laya_社区 发布时间: 20180724
...,完成事件,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求...
来源: Laya3.0_文档 发布时间: 20241014
...修改laya.d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp(); bre...
来源: Laya_社区 发布时间: 20200119