大约有 160 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...00, 200, 50, 50, "#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻烦解答,谢谢。 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170525
...this.mouseOutCallback); // this.bubbleView.on(Laya.Event.MOUSE_DOWN, this, this.mouseDownCallback); } 然后,鼠标down 0.5秒,松开,就会出现如下的顺序 mouseUpCallback mouseOutCallback mouseMoveCallback out ,move 事件触发再up之后,但如果不长...
来源: Laya_社区 发布时间: 20191122
...nds ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on(Laya.Event.MOUSE_DOWN, this, this.onStart); // Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.birdFly);//可以绑定两个函数 Laya.stage.on(Laya.Event.KEY_DOWN, this, this.birdFly); this.init(); } public init(): void { Laya.Tween.t...
来源: Laya_社区 发布时间: 20180507
...同来自: 手势识别主要会用到以下几个方法:_obj.on(Event.MOUSE_DOWN, Laya.stage.on(Event.MOUSE_MOVE, Laya.stage.on(Event.MOUSE_UP, Laya.stage.on(Event.MOUSE_OUT, 2017-06-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20170617
...jump.onClick(this, this.onJump) this.view.m_left.on(Laya.Event.MOUSE_DOWN,this, this.onleft) this.view.m_left.on(Laya.Event.MOUSE_UP,this, this.notleft) this.view.m_right.on(Laya.Event.MOUSE_DOWN,this, this.onright) this.view.m_right.on(Laya.Event.MOUS...
来源: Laya_社区 发布时间: 20221207
...机型(一部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.onMouseEvent);...
来源: Laya_社区 发布时间: 20230619
...且 setMouseDownHandler: function (context, handler) { this.on(this.EVENT.MOUSE_DOWN, context, handler); }, setMoveHandler: function (context, handler) { this.on(this.EVENT.MOUSE_MOVE, context, handler); }, setMouseUpHandler: function (context, handler) { this.on(this.EVENT.MOUSE_UP, context, handle...
来源: Laya_社区 发布时间: 20170316
...tage.on(Laya.Event.MOUSE_UP, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouse); 在frameLoop中,我让Laya.stage.pos(movex,movey)后,就再不会调用this.onMouse事件了,请问如何解决? 2018-03-11 ...
来源: Laya_社区 发布时间: 20180311
...的链接 提交 2 个回复 158*****871 赞同来自: Laya.stage.on(Event.MOUSE_DOWN, this, this.onMouseDown); onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touc...
来源: Laya_社区 发布时间: 20190919
...t(0, 0, 515, 515, "#996633", "#333333"); spe.on(Event.MOUSE_DOWN, spe, onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } private function onMouseDown(e:Event):void { ...
来源: Laya_社区 发布时间: 20170407