大约有 385 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0041 秒)
Laya_社区(216) Laya2.0_api(57) laya_api(53) Laya2.0_文档(24) Laya2.0_示例(14) Laya3.0_文档(10) Laya_示例(9) Laya3.0_api(2)
...听函数参数的target判断是不是button来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...
来源: Laya_社区 发布时间: 20180706
...rt(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick); // 初始化 UI 界面显示 this.reset(); } // 注册 Start 类 Laya.class(Start,"Start",_super); var ...
来源: Laya_社区 发布时间: 20180130
...接 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
...问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 event自定义事件的问题 关于Quaternion.rotationLookAt的问题 问题状态 最新活动: 2017-07-12 22:31 浏览: 1715 关注: 2 人 a4362928 • 2017-07-12 16:46 感谢,https://layaair.ldc.layabox.com/demo/?Sprite_...
来源: Laya_社区 发布时间: 20170710
...如下: 以下是代码: protected onEnter(){ this.img_sample.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(L...
来源: Laya_社区 发布时间: 20180905
...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...
来源: Laya_社区 发布时间: 20180907
...机按钮*/ private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎...
来源: Laya_社区 发布时间: 20170412
...for遍历下对sp进行CLICK的监听即可,sp.size(xxx,xxx);sp.on(Event.CLICK,this,onSpClick) 3、点击sp时,直接获取sp.index值即可(e.target.index)! 2017-02-21 1 0 分享 微博 QZONE 微信 lift6220819 赞同来自: q395212409 Laya.init(640,1010); Laya.stage.scaleMode = Laya....
来源: Laya_社区 发布时间: 20170221
... this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&pas...
来源: Laya_社区 发布时间: 20170215
...this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); } //btn 有宽高 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20180828