大约有 43 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0024 秒)
...USE_DOWN"); this.on(laya.events.Event.MOUSE_MOVE ,this, this.onMouseMove); this.onMouseDownX = e.target.mouseX; this.onMouseDownY = e.target.mouseY; } onMouseUp(e : laya.events.Event):void{ console.log("MOUSE_UP"); t...
来源: Laya_社区 发布时间: 20160823
移除鼠标事件 btn.on(Event.MOUSE_MOVE, this, onMouseMove); 如何移除btn的该鼠标事件 2017-06-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: on用来侦听事件,off用...
来源: Laya_社区 发布时间: 20170623
...响应函数的参数在API中哪里可以查到 bg.on("mousemove", this, onMouseMove); function onMouseMove(e) { console.log(e) } 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...
来源: Laya_社区 发布时间: 20171016
... if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private function onMouseMove(e:Event= null):void { var touches:Array = e.touches; if (touches) { xx = moveX - touches[0].stageX; hero.x -=xx moveX = touches[0].stageX; } } 上面写法安卓机子测试功能...
来源: Laya_社区 发布时间: 20210203
...ove事件的话! onMouseDown 中 Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); onMouseUp 中 Laya.stage.off(Event.MOUSE_MOVE, this, onMouseMove); 也可以写个变量 ,down的时候为true,否则为false 如"cuixueying" 回答的一样! 2017-04-21 3 0 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20170421
...行你那个事件回调函数即可 Laya.stage.on(Event.MOUSE_MOVE,this,onMouseMove); private function onMouseMove():void { if(Laya.stage.mouseX == 100 && Laya.stage.mouseY == 150) { //在这里调你想要执行的事件回调函数即可 } } Playerdata1 • 2017-06-08 10:20 要是知道...
来源: Laya_社区 发布时间: 20170607
...e.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMode = "destination-out"; ape.addChild(interactionArea); interactionArea.graphics.clear(); } function onMouseMove(e) { if(mouseX!=0){ if(Math.abs(mouseX-ape.m...
来源: Laya_社区 发布时间: 20170615
...tageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } private onMouseMove(e: Event): void { var touches: Array<any> = e.touches; if (touches && touches.length == 2) ...
来源: Laya_社区 发布时间: 20171201
...何获取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
...aya.stage.addChild(this.cMask); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, onMouseMove); ape.mask = this.cMask; } function onMouseMove(){ this.cMask.pos(Laya.stage.mouseX, Laya.stage.mouseY); }; })(); 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180313