大约有 131 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)
Laya_社区(95) Laya2.0_示例(9) Laya2.0_文档(9) Laya_示例(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3) Laya3.0_api(1)
...his.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); } //恢复 GameEx.prototype.resume = function () { //在循环中创建敌人 Laya.timer.frameLoop(1,this,this.onLoop); console.log("恢复播放音乐") Laya.SoundManager.stopMusic(); Laya.SoundManager.playMus...
来源: Laya_社区 发布时间: 20180514
....stage.mouseX this.downMouseY = Laya.stage.mouseY Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.mouseMove) } mouseMove(){ let x = this.offsetX - (Laya.stage.mouseX - this.downMouseX) let y = this.offsetY - (Laya.stage.mouseY - this.downMouseY) this.moveMap(x>0?(x<this.maxX?x:this.maxX):0,y>...
来源: Laya_社区 发布时间: 20181220
...mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.finishScroll); } function finishScroll(){ Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Laya.E...
来源: Laya_社区 发布时间: 20170810
...vX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event.MOUSE_UP,this,finishScrollText);}/* 停止滚动文本 */function finishScrollText(){Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.scrollText);Laya.stage.off(Laya.Event....
来源: Laya_社区 发布时间: 20180125
... = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, mouseMove); } function mouseMove() { //移动地图视口 tiledMap.moveViewPort(mX - (Laya.stage.mouseX - mLastMouseX), mY - (Laya.stage.mouseY - mLastMouseY)); } function mouseUp() { mX = mX - (Laya.stage.m...
来源: Laya_社区 发布时间: 20171205
....layer.on(Laya.Event.MOUSE_UP, this, this.upFun); this.layer.on(Laya.Event.MOUSE_MOVE, this, this.moveFun); } //弹起事件 ModeKey.prototype.upFun = function () { this.isDown = false; this.isUp = false; this.isMove = false; this.isMode = "stop"; //移除弹起和移动事件 this.layer.off(Laya.Ev...
来源: Laya_社区 发布时间: 20171030
...pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event.MOUSE_MOVE, this, this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, this.__mouseUp); console.log(this.pos0.x); } __mouseMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDis...
来源: Laya_社区 发布时间: 20170831
...rTex); addEvent(); } private function addEvent():void { _colorSpr.on(Event.MOUSE_MOVE, this, __moveHandler); } private function __moveHandler():void { var p:Point = toLocal(new Point(Laya.stage.mouseX, Laya.stage.mouseY), _colorSpr); var cir:Sprite = new Sprite(); cir.graphics.drawCircle(0, 0, 15, "...
来源: Laya_社区 发布时间: 20180302
... mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, mouseMove); } function mouseMove() { //移动地图视口 // console.log("X:",mX - (Laya.stage.mouseX - mLastMouseX)) // console.lo...
来源: Laya_社区 发布时间: 20180614
...useHandler); rect.on(Event.RIGHT_CLICK, this, mouseHandler); rect.on(Event.MOUSE_MOVE, this, mouseHandler); rect.on(Event.MOUSE_OVER, this, mouseHandler); rect.on(Event.MOUSE_OUT, this, mouseHandler); rect.on(Event.DOUBLE_CLICK, this, mouseHandler); rect.on(Event.MOUSE_WHEEL, this, mouseHandler); } ...
来源: Laya_社区 发布时间: 20180205