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

大约有 441 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)

141. down点击事件一直派发情况 [ 68%]

...链接 提交 3 个回复 cuixueying 赞同来自:  self.sendBtn.on(Laya.Event.CLICK, self, self.onHandle); 这里用CLICK事件替代,或者同时监听一个MOUSE_UP事件,当鼠标抬起时,将MOUSE_DOWNshi事件移除 2017-03-07 0 1 分享 微博 QZONE 微信 yanmingjie 赞同来自: demo...

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

142. 3D射线穿透UI问题 [ 68%]

... "切换动作")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现  });     在另一个方法里面 Laya.stage.on(Laya.Event.MOUSE_UP, this, function(evt:Laya.Event):void{     console.log("aaaaa = " + evt.tager.name);  //这里名字是...

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

143. 老师,请问一下如何在js代码中,动态的创建一个按钮(或者图片、lable)并添加到一个box中? [ 67%]

...utton("comp/btn_start.png","测试按钮"); bt.on(Laya.Event.CLICK, this, this.click); Laya.stage.addChild(bt); function click() { console.log("??????????"); } 点击之后没有翻译,按钮也没有点击的动画 cuixueying • 2017-04-24 11:07 我们测试是OK的...

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

144. on()事件的参数 [ 67%]

on()事件的参数 this.bg.on(Laya.Event.CLICK,this,onClickc);这报错 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 oy2419498011 赞同来自: 我已经解决了   2018-01-09 0 0 分享 微博 QZO...

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

145. 请问UI之间的场景切换要怎么写 [ 67%]

...(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = fu...

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

146. 如何给Tab里的button设置点击事件? [ 67%]

...quot;当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想请问下,这样添加,我上面点击事件只执行一次,就连打印出onSelect里的东西也只有一次? cuixueying • 2017-05-16 10:53 selectHandler本身就是点击事...

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

147. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 67%]

...veControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Event.CLICK, this, this.onTipClick); //this._loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset);  let partPath = "res/aixin_bao.part"; Laya.loader.l...

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

148. 全屏请求问题!!!求救啊!!求救啊!! [ 67%]

...问题!!!求救啊!!求救啊!! this.fullScreen_btn.on(Laya.Event.CLICK, this, this.onFullScreen, null); _proto.onFullScreen = function () { toggleFullscreen(); };       function launchIntoFullscreen(element) { var element = document.documentElement; if (element.requestFullscreen)...

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

149. socket.sent [ 67%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private...

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

150. 经验分享:如何控制龙骨动画的播放索引! [ 67%]

...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(8...

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