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

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

61. socket.sent [ 75%]

...接 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

62. 不能成功调用 DiaLog Close 关闭方法 [ 75%]

...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

63. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 75%]

...如下:   以下是代码: 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

64. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 75%]

...问题 横屏模式在锁定竖屏的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

65. 关于遍历产生的sprite的点击事件,急,大神帮看哈 [ 75%]

...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

66. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 75%]

...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

67. DialogUI,在内部按钮监听事件没效果是引擎设定?还是我用法错误? [ 75%]

...个按钮,confirm, cancel, 在InputTxtDialog 类里面cancel_btn.on(Event.CLICK, this, this.onCancel));没有反映,但是在调用InputTxtDialog的地方InputTxtDialog.cancel_btn.on(Event.CLICK, this, this.onCancel));是没有问题的,同样的代码,粘出来就行,在里面就不...

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

68. http无响应 [ 75%]

... 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

69. 关于list里注册事件和移除事件 [ 74%]

... btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); } 附件 : --> list.png 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来...

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

70. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 74%]

... dialog.popup();          dialog.btn_question_dialog_next.on(Laya.Event.CLICK, this, onNext); dialog.radioGroup_question.labels = "如果资源未加载,则先加载资源,\n加载完成后应用于此对象。,"+"如果资源未加载,则先加载资源,\n加载完成后应用于此...

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