大约有 163 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0148 秒)
关于new Handler和handler.create的使用问题 官方文档的内存优化章节中,提到了除了使用new Handler来完成异步回调,还可以使用handler.create的方式(该方法使用了内置对象池管理),并且举了例子说明了create的好处。我想问的是,这...
来源: Laya_社区 发布时间: 20190725
handler携带的参数在回调函数里面怎么获取? handler携带的参数在回调函数里面怎么获取? 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load(...
来源: Laya_社区 发布时间: 20180330
使用 Tween.to 方法报错 handler.run is not a function 使用 Tween.to 方法报错 handler.run is not a function Tween.to(ape, { x: moveObj.x, y:moveObj.y }, 1000,Ease["circIn"],function(){ alert(1) },0,false,true); 2017-02-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20170220
JS里面定义一个函数,无法使用Laya.Handler.creat回调 代码运行到Laya.Handler.create时候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.load...
来源: Laya_社区 发布时间: 20190130
使用Laya.Handler.create在方法体内this关键词无效 附件 : --> 2019-10-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 缨 赞同来自: 首先检查你的外部那个Init函数的this,然后再...
来源: Laya_社区 发布时间: 20191021
使用Handler 返回name 始终是 undefined public function RegDlg() { this.btn_submit.name = Dialog.SURE; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupConte...
来源: Laya_社区 发布时间: 20170324
...yabox如何加载多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180809
... at loadProgress (http://127.0.0.1:24481/game/li ... 224:34) at Handler.runWith (http://127.0.0.1:24481/game/li ... 850:38) at loadProgress (http://127.0.0.1:24481/game/li ... 233:30) at Handler.runWith (http://127.0.0.1:24481/game/li ... 850:38) at loadProgress (http://...
来源: Laya_社区 发布时间: 20191101
...弹出框关闭之后黑色遮罩没有关闭 this.closeEffect = new Laya.Handler(this, function () { Laya.Tween.to(this, { x: Game.UIWidth }, 200, Laya.Ease.backIn, new Laya.Handler(this, function () { })); }); 2018-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20181027
...同来自: sevennqi Laya.loader.load([{url:"xxx.mp3",type:Loader.SOUND}],Handler.create(this,onComped)) 2018-01-18 1 1 分享 微博 QZONE 微信 sevennqi 赞同来自: 可以和图片, push到同一个var res:Array = []里么? Laya.loader.load(res, Handler.create(this,onComped)) 2018-01-18 0...
来源: Laya_社区 发布时间: 20180118