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

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

141. 点击事件会导致setTimeout setInterval 延迟执行的问题 [ 71%]

...面的方法, 一样会导致setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用; 现在...

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

142. 如何在chrome console 里模拟canvas点击事件 [ 71%]

...把想点击的位置的信息传给透明图的属性,然后定时执行Click事件 2019-02-14 1 3 分享 微博 QZONE 微信 188*****848 赞同来自: 有人知道怎么弄吗?可以联系我QQ 467622809,除了赏金,我额外付费的~ 2019-01-26 0 2 分享 微博 QZONE 微信 为什么...

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

143. 模拟鼠标事件 [ 71%]

...function Main() { //初始化引擎 Laya.init(600,400); //手动调stage的click事件 this.onClick(); //给stage监听点击事件 Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { trace("test!"); } } } 2017-06-07 0 3 分享 微博 QZONE 微信 Playerdata1 赞同来自: ...

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

144. 动画-新版骨骼动画 [ 70%]

....height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { //根据名称播放动画 zombieAnimator.play(clipName[++curStateIndex % clipName.length]); }); })); }class SkinAnimation_New { private changeActionButton: Laya.Button; private zombieAnimator: Laya...

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

145. laya调用input 标签没反应 [ 70%]

...出窗口的。var ne = document.createEvent('MouseEvents'); ne.initEvent('click', true, true); document.getElementById('myfile').dispatchEvent(ne); 不过在laya里面调用并没有效果。 代码是确认以及调用的。__JS__("var ne = document.createEvent('MouseEvents'); ne.initEvent('click'...

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

146. LayaAir开发笔记(1)五十音图连连看 [ 70%]

...bold = true; copyright.pos(20, g_stat_heiht - 35); copyright.on(Laya.Event.CLICK, this, function() { window.location.href = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,...

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

147. 鼠标点击穿透问题 [ 70%]

...0); sp1.graphics.endFill(); addChild(sp1); sp1.addEventListener(MouseEvent.CLICK,onSp1); var sp2:Sprite=new Sprite(); sp2.graphics.beginFill(0xFFFF00); sp2.graphics.drawCircle(200,200,100); sp2.graphics.endFill(); addChild(sp2); sp2.mouseEnabled=false; sp2.addEventListener(MouseEvent.CLICK,onSp2); }...

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

148. 求教Event.KEY_DOWN和Event.MOUSE_DOWN调用window.open相关问题 [ 70%]

...a.stage.on(Event.MOUSE_DOWN, this, OnDown);//被拦截 Laya.stage.on(Event.CLICK, this, OnDown);//被拦截 在页游端中只有Event.KEY_DOWN事件按下键盘可以正常跳转网页。而监听鼠标点击按钮和鼠标按下事件window.open()都会被拦截,请问这是为什么,有什么...

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

149. dialog第一次可以正常调出,第二次无法正常popup出来 [ 70%]

...ew.prototype.init = function () {         this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg);         this.btnLogin.on(Laya.Event.CLICK, this, this.onBtnLogin);         this.dlg = new NormalDialog();         this.dlg.init();     };   附件 : --> firstgame.rar 2017...

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

150. 如何能监听到TouchStart和TouchEnd事件 [ 70%]

...值。*/         static MOUSE_UP: string;         /** 定义 click 事件对象的 type 属性值。*/         static CLICK: string;         /** 定义 rightmousedown 事件对象的 type 属性值。*/         static RIGHT_MOUSE_DOWN: string;         /** ...

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