大约有 99 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)
Laya_社区(56) Laya2.0_示例(9) Laya2.0_文档(9) Laya_示例(7) Laya2.0_api(6) laya_api(6) Laya3.0_文档(5) Laya3.0_api(1)
...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
...ntSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ private function startScrollText(e:Event):void { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MO...
来源: Laya2.0_文档 发布时间: 20210715
...tion-out" guideContainer.addChild(interactionArea); gameContainer.on(Event.MOUSE_DOWN, this, downHandler); gameContainer.on(Event.MOUSE_UP, this, upHandler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private fu...
来源: Laya_社区 发布时间: 20170315
...着的时候,在手机上滑动,地图还是会移动,主要是因为Mouse_DOWN, Mouse_UP是加在Laya.stage上的,请问什么好一点的办法让我打开Dialog的时候,滑动屏幕,后面的TiledMap不会滚,Dialog关掉,后面地图又可以滚动? 2017-09-02 添加评论 免...
来源: Laya_社区 发布时间: 20170902
...ntSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, startScrollText); } /* 开始滚动文本 */ function startScrollText(e) { prevX = txt.mouseX; prevY = txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, scrollText); Laya.stage.on(Event.MOUSE_UP, this, finis...
来源: Laya2.0_文档 发布时间: 20210714
...is.txt.color = "#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ private startScrollText(e: Event): void { this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.scrollText);...
来源: Laya2.0_文档 发布时间: 20210715
...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
...码,确保_owner不为null if(_isScal&&_owner) { _owner.on(Event.MOUSE_DOWN,this,onDown); } else { return; } } public function get isScale():Boolean { return _isScal; } public function set isScale(isScal:Boolean):void { this._isScal=isScal; } private function onDown():void { //按下,按...
来源: Laya_社区 发布时间: 20161014
... var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Event.MOUSE_MOVE,this,bb) }) function bb(e){ s...
来源: Laya_社区 发布时间: 20180510
...caleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建...
来源: Laya_社区 发布时间: 20171205