大约有 441 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(263) Laya2.0_api(59) laya_api(55) Laya2.0_文档(21) Laya3.0_文档(16) Laya2.0_示例(15) Laya_示例(9) Laya3.0_api(3)
...链接 提交 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
... "切换动作")) 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
...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
on()事件的参数 this.bg.on(Laya.Event.CLICK,this,onClickc);这报错 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 oy2419498011 赞同来自: 我已经解决了 2018-01-09 0 0 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180109
...(_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
...quot;当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想请问下,这样添加,我上面点击事件只执行一次,就连打印出onSelect里的东西也只有一次? cuixueying • 2017-05-16 10:53 selectHandler本身就是点击事...
来源: Laya_社区 发布时间: 20170516
...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
...问题!!!求救啊!!求救啊!! 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
...接 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
...{ 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