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

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

171. 加载的时候动画会卡 [ 42%]

...d.__super.call(this);         this.dh();         this.btn.on(Event.MOUSE_DOWN,game,this.toquanjing);         Laya.propertyIsEnumerable = true;     }     Laya.class(Lload,"Lload",ui.loadUI);     Lload.prototype.dh = function(){         this.ani1.play(0,true);         Tween.t...

来源: Laya_社区 发布时间: 20160815

172. Shader预编译(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 42%]

...边缘光照(Shader_GlowingEdge)示例 ```typescript Laya.stage.on(Event.MOUSE_DOWN,this,function():void{ var arr:Array; for(var i:int = 0;i 生成的相关数据 ```typescript { "GlowingEdgeMaterial":[ { "defineNames":["DIRECTIONLIGHT"], "passIndex":0, "subShaderIndex":0 }, { "defineNames":["DIRECT...

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

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

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

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

...加鼠标按下事件侦听。按时时缩小按钮。 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

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

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

176. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 42%]

...} } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.timer.d...

来源: Laya3.0_文档 发布时间: 20240624

177. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 42%]

...码,确保_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

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

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

179. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 39%]

...加鼠标按下事件侦听。按时时缩小按钮。 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

180. laya.events.Event [ 38%]

...= message[static] 定义 message 事件对象的 type 属性值。Event  MOUSE_DOWN : String = mousedown[static] 定义 mousedown 事件对象的 type 属性值。Event  MOUSE_MOVE : String = mousemove[static] 定义 mousemove 事件对象的 type 属性值。Event  MOUSE_OUT : String = mouseo...

来源: Laya2.0_api 发布时间: 20190513