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

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

1. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 100%]

...text.fontSize=30; Laya.stage.addChild(this.text); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.changeAction); } tActionID:number=0; changeAction() { this.tActionID++; var aniCount:number; //获取动画动作数量 aniCount=this.skeleton.getAnimNum(); this.tActionID=this.tActionID%aniCount; //显...

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

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

...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

3. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 97%]

...0ff00"; text.fontSize = 30; Laya.stage.addChild(text); Laya.stage.on(Event.MOUSE_DOWN, this, changeAction); } private var tActionID:int=0; private function changeAction():void { tActionID++; var aniCount:int; //获取动画动作数量 aniCount = skeleton.getAnimNum(); tActionID = tActionID % aniCou...

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

4. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 97%]

...00"; text.fontSize=30; Laya.stage.addChild(text); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,changeAction); } var tActionID; function changeAction() { tActionID++; var aniCount; //获取动画动作数量 aniCount=skeleton.getAnimNum(); tActionID=tActionID%aniCount; //显示当前要播放的动画名...

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

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

...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

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

...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

7. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 92%]

...pescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 th...

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

8. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 92%]

...pescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 th...

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

9. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 91%]

... //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Event.MOUSE_DOWN,this,scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Event.MOUSE_UP,this, scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Event.MOUSE_OUT,this, scaleB...

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

10. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 91%]

...加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬起事件侦听。抬起时还原按钮。 this.on(Laya.Event.MOUSE_UP,this, this.scaleBig); //添加鼠标离开事件侦听。离开时还原按钮。 this.on(Laya.Event.MOU...

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