大约有 96 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0047 秒)
Laya_社区(60) Laya2.0_示例(9) Laya2.0_文档(9) Laya_示例(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3) Laya3.0_api(1)
...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, mouseMove); } function mouseDown(){ this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE,this,mouseMove); } /** * 改变视口大小 * 重设地图...
来源: Laya2.0_文档 发布时间: 20210715
...s.MapY - (Laya.stage.mouseY - this.mLastMouseY); Laya.stage.off(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } private mouseDown():void { this.mLastMouseX = Laya.stage.mouseX; this.mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); } /** * 改变视口大...
来源: Laya2.0_文档 发布时间: 20210715
...p.pivot(50, 50); // 设置mask bg2.mask = maskSp; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, () => { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya.stage.mouseY; }); } } new Sprite_MagnifyingGlass();module laya { import Sprite = Laya.Spr...
来源: Laya2.0_示例 发布时间: 20241123
....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInpu...
来源: Laya_社区 发布时间: 20170714
....on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInpu...
来源: Laya_社区 发布时间: 20190224
...(range); //sp.scaleY=0.5; guideContainer.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,move); } private function move():void { sp.x=Laya.stage.mouseX; sp.y=Laya.stage.mouseY; sp.graphics.clear(); sp.graphics.drawCircle(0, 0, 200,"#0ef604"); } li970704928 • 2017-12-13 19:08 @Laya_Aaro...
来源: Laya_社区 发布时间: 20171213
...0, 0, 20, "#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE, this, function() { sp.pos(Laya.stage.mouseX, Laya.stage.mouseY); }); ``` ![图片1.png](img/1.png) (图1) 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更...
来源: Laya2.0_文档 发布时间: 20210715
...drawCircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时F...
来源: Laya2.0_文档 发布时间: 20210715
...ircle(0,0,20,"#990000"); Laya.stage.addChild(sp); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,function() { sp.pos(Laya.stage.mouseX,Laya.stage.mouseY); }); ``` ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时F...
来源: Laya2.0_文档 发布时间: 20210714
...ve Event Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_MOVE鼠标在对象身上进行移动后调度 mouseout Event Event Object Type: laya.events.EventEvent.type property = Event.MOUSE_OUT鼠标离开对象后调度。 mouseover Event Event Object Type: laya.events.Ev...
来源: Laya2.0_api 发布时间: 20190513