• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 6 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0026 秒)

1. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 100%]

...ext); } /* 停止滚动文本 */ function finishScrollText(e) { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 */ function scrollText(e) { var nowX = txt.mouseX; var nowY = txt.mouseY; txt.scrollX += prevX - nowX; t...

来源: Laya2.0_文档 发布时间: 20210714

2. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 99%]

...动文本 */ private function finishScrollText(e:Event):void { Laya.stage.off(Event.MOUSE_MOVE, this, scrollText); Laya.stage.off(Event.MOUSE_UP, this, finishScrollText); } /* 鼠标滚动文本 */ private function scrollText(e:Event):void { var nowX:Number = txt.mouseX; var nowY:Number = txt.mouseY...

来源: Laya2.0_文档 发布时间: 20210715

3. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 97%]

...止滚动文本 */ private finishScrollText(e: Event): void { Laya.stage.off(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.off(Event.MOUSE_UP, this, this.finishScrollText); } /* 鼠标滚动文本 */ private scrollText(e: Event): void { var nowX: number = this.txt.mouseX; var nowY: number = t...

来源: Laya2.0_文档 发布时间: 20210715

4. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 58%]

...this.MapY = this.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

5. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 57%]

...this.MapY = this.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

6. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 56%]

... mLastMouseX); MapY = MapY - (Laya.stage.mouseY - mLastMouseY); Laya.stage.off(Event.MOUSE_MOVE, this, this.mouseMove); } private function mouseDown():void { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.mouseMove); } /** * 改变视口...

来源: Laya2.0_文档 发布时间: 20210714