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

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

71. 获取的ui页面里下on事件无法触发 [ 60%]

...Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitmap: AutoBitmap, _text: Text, _strokeColors: null, _state: 0…} 其中...

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

72. Cannot read property 'events' of undefined [ 60%]

...后,提示events为空.Object.defineProperty(laya.events.EventDispatcher.prototype,"_events",{enumerable:false,writable:true}); 手动log"laya"时发现为undefined 附件 : --> 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

73. 加载UI为什么总是加载白底 [ 60%]

...start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ????  fffff  ...

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

74. Laya2.1.0的BUG!Texture类的getTexturePixels [ 59%]

...容相关的链接 提交 2 个回复 腊笔小新 赞同来自: uv=Array.prototype.slice.call(this.uv); 2019-07-05 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个新版是修复了的,您先自己临时改一下 2019-07-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

75. 需要监听微信小游戏里面发送的所有事件,想利用一下事件派发函数 [ 59%]

...函数,类似于cocos引擎的dispatchEvent事件派发函数(cc.Node.prototype.dispatchEvent),这边需要重载一下laya的事件派发函数,先把发生的事件都保存下来,包括click、滑动这类的事件 2019-01-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

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

...} // 注册 Start 类 Laya.class(Start,"Start",_super); var _proto = Start.prototype; // 初始化 UI 界面显示 _proto.reset = function(){ } _proto.onBeginClick = function(){ dialog.close(); restart(); } _proto.onLinkClick = function(){ alert("***"); } return Start; })(ui.StartUI);另附说明:...

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

77. LAYA TS删掉所有生成的JS重新生成JS报错 [ 59%]

...TS删掉所有生成的JS重新生成JS报错   所有的类都报 Object prototype may only be an Object or null undefined    重新排列index.html JS顺序也没用 因为编译会让它恢复排列 求教怎么回事呀   难道全删JS重新让它生成一遍是不能这么操作的吗? ...

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

78. JS如何调用经过转换的FLASH游戏里的方法? [ 59%]

...来自: 这个问题解决了,只要在你写的JS方法里调用swfid.prototype.functionname 2016-07-28 0 0 分享 微博 QZONE 微信 gotohell1234567 赞同来自: 在layaair导入ExternalInterface这个类报错,能说一下怎么处理吗?,楼上的是怎么成功的 2017-02-07 0 0 分...

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

79. JS中关于按钮注册监听后在处理函数访问不到类成员变量的问题 [ 59%]

...题 this.btnLogin.on(Laya.Event.CLICK, null, this.OnLoginClick); LoginView.prototype.OnLoginClick= function() { this.dlg.setContent("暂时无法登录"); }; 解决方法式在第一行代码第二个参数一定要传this(被某老师坑惨) 如这样: this.btnLogin.on(Laya.Event.CLICK, this, thi...

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

80. 如何将原生iframe嵌入某个节点,像addChild那样嵌入 [ 59%]

...如何将原生iframe嵌入某个节点,像addChild那样嵌入 HallView.prototype.OnClickOneGou=function(){ this.frame=Laya.Browser.document.createElement("iframe"); this.frame.width=this.con.width; this.frame.height=850; this.frame.style.margin="0"; this.frame.style.padding="0"; this.frame.style...

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