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

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

161. MOUSE_UP事件 [ 88%]

MOUSE_UP事件 当我使用 for(var i=0;i<3;i++){ this["_role_"+i].on(Event.MOUSE_DOWN,this,this.clickDown) ; this["_role_"+i].on(Event.MOUSE_MOVE,this,this.clickMove); // this["_role_"+i].on(Event.MOUSE_UP,this,this,clickUp); }这样的方式添加监听时,MOUSE_UP不支持对象采用拼接...

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

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

...创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第...

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

163. 输入设备-贪吃蛇(重力感应) [ 87%]

...化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnak...

来源: Laya_示例 发布时间: 20241002

164. 示例 骨骼动画换装 加不上点击事件 [ 87%]

.../mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, cha...

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

165. tweenline label事件诡异 [ 87%]

...的都会同时播放 这里不太了解 3.官网上绑定的事件 是写Event.LABEL 实际上这里输出来是空的 我后面改成了 "label"才可以触发事件 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

166. Button点击函数逻辑bug [ 87%]

...is.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state = Button.stateMap[e.type]); }上面逻辑当cli...

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

167. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 87%]

...iew.m_jump.onClick(this, this.onJump)         this.view.m_left.on(Laya.Event.MOUSE_DOWN,this, this.onleft)         this.view.m_left.on(Laya.Event.MOUSE_UP,this, this.notleft)         this.view.m_right.on(Laya.Event.MOUSE_DOWN,this, this.onright)         this.view.m_right.on(Laya.Even...

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

168. 注册函数里面 事件侦听函数的执行域 的详解 [ 86%]

注册函数里面 事件侦听函数的执行域 的详解 sp.on(Event.CLICK, this, fun) 有时候是this,有时候是null 到底怎么区分这个 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

169. DOM元素-表单输入 [ 86%]

...ayInput.type = "date"; passwordInput.type = "password"; Laya.stage.on(Laya.Event.RESIZE, this, fitDOMElements, [emailInput, birthdayInput, passwordInput]); function showLabel(label,x,y){ var t = new Laya.Text(); t.height = this.rowHeight; t.valign = "middle"; t.fontSize = 15; t.font = "SimHei"; t.te...

来源: Laya_示例 发布时间: 20241002

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

...能,全部代码如下所示: ```typescript package game { import laya.events.Event; import laya.ui.Image; import laya.utils.Tween; /** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ...

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