大约有 114 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)
...teHouse(); for (let i = 1; i mouseJoint).onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.on(Event.MOUSE_OUT, this, this.destoryJoint); // 方案二,自己实现,可以实现更大程度的控制 // Laya.stage.on(Event.MOUSE_MOVE, this, this.mouseMove); // Laya.st...
来源: Laya2.0_示例 发布时间: 20241117
MOUSE_UP事件 当我使用 for(var i=0;i<3;i++){ this["_role_"+i].on(Event.MOUSE_DOWN,this,this.clickDown) ; this["_role_"+i].on(Event.MOUSE_MOVE,this,this.clickMove); // this["_role_"+i].on(Event.MOUSE_UP,this,this,clickUp); }这样的方式添加监听时,MOUSE_UP不支持对象采用拼接...
来源: Laya_社区 发布时间: 20180116
...鼠标事件 rect.on(Event.MOUSE_DOWN, this, mouseHandler); rect.on(Event.MOUSE_UP, this, mouseHandler); rect.on(Event.CLICK, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, mouseHandler); rect.on(Event.RIGHT_CLICK, this, mouseHandler); r...
来源: Laya_示例 发布时间: 20241117
发布微信后无法触发mouse_up事件 /** 初始化资源加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mou...
来源: Laya_社区 发布时间: 20181102
...事件 rect.on(Event.MOUSE_DOWN, this, this.mouseHandler); rect.on(Event.MOUSE_UP, this, this.mouseHandler); rect.on(Event.CLICK, this, this.mouseHandler); rect.on(Event.RIGHT_MOUSE_DOWN, this, this.mouseHandler); rect.on(Event.RIGHT_MOUSE_UP, this, this.mouseHandler); rect.on(Event.RIGHT_CLICK, thi...
来源: Laya2.0_示例 发布时间: 20241117
...E_MOVE, this, onMouseMove); buttonPosition = button.x; Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } /**移到事件处理*/ function onMouseMove(e) { button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件...
来源: Laya_示例 发布时间: 20241117
...is, this.onMouseMove); buttonPosition = this.button.x; Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } /**移到事件处理*/ onMouseMove(e) { this.button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起...
来源: Laya2.0_示例 发布时间: 20241117
...Laya.timer.once(HOLD_TRIGGER_TIME, this, this.onHold); Laya.stage.on(Event.MOUSE_UP, this, this.onApeRelease); } onHold() { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.ape, { "scaleX": 1, "scaleY": 1 }, 500, Ease.bounceOut); isApeHold = true; } /** 鼠标放开后停止hold */ onApeRel...
来源: Laya2.0_示例 发布时间: 20241117
...hold Laya.timer.once(HOLD_TRIGGER_TIME, this, onHold); Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); } function onHold() { Tween.to(ape, { "scaleX": 1, "scaleY": 1 }, 500, Ease.bounceOut); isApeHold = true; } /** 鼠标放开后停止hold */ function onApeRelease() { // 鼠标放开时,如果...
来源: Laya_示例 发布时间: 20241117
...eY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finishScrollText); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 ...
来源: Laya_示例 发布时间: 20241117