大约有 53 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0035 秒)
EventDispatcher接收不到参数 var Dispatcher = (function(_super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = functi...
来源: Laya_社区 发布时间: 20170809
EventDispatcher.hasListener问题 var e:EventDispatcher = new EventDispatcher(); e.on("test", this, this.test1); e.on("test", this, this.test2); e.off("test", this, this.test1); e.off("test", this, this.test2); console.log(e.hasListener("test")); ---------------------------------------- 输出:true...
来源: Laya_社区 发布时间: 20180423
Laya.EventDispatcher off 删除侦听器 var eventDis = new Laya.EventDispatcher() eventDis.on('TEST_EVENT_DIS', this, someEventHandler, null) eventDis.off('TEST_EVENT_DIS', this, another_eventHandler, false) off 怎样才能 从 EventDispatcher 对象中删除侦听器? ...
来源: Laya_社区 发布时间: 20180914
EventDispatcher事件派发收不到问题 我有一个类继承了EventDispatcher,然后调用event派发自定义事件,另外一个类监听了这个自定义事件,为什么收不到事件消息呢? 现在是只能监听相同类里面派发的消息。 2016-12-09 添加评论 免费帖...
来源: Laya_社区 发布时间: 20161209
EventDispatcher的off函数的bug 如截图,这里应该是: if (listeners !=null){ 附件 : --> 2018-12-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 已经改了,下个版本...
来源: Laya_社区 发布时间: 20181204
报错:LayaAir not allow import flash.events.EventDispatcher? 2016-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 可以用!除了SDK下的顶级报和数据类型外,其他...
来源: Laya_社区 发布时间: 20161222
EventDispatcher.off的逻辑 想请问一下,图中listeners[i]=null的问题; 当listener1,listener2同时监听事件A, listener1永远不移除监听, listener2不断的添加移除,这种情况会导致listeners的长度无限增长,只是里面的元素为null值。增加了遍...
来源: Laya_社区 发布时间: 20180628
请教,2.0里ShurikenParticleSysmtem不继承EventDispatcher,如何监听粒子特效完成事件呀? 2019-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 看一下 ShurikenPar...
来源: Laya_社区 发布时间: 20190401
EventDispatcher移除监听的Bug(包括Delegate的效率和出错率的问题) 用off方法移除事件只传caller,可选参数listener不传 off方法只做了参数数量的判断,没有判断第参数的类型,把caller当作listerner 这里应该是用类型判断没有listener参...
来源: Laya_社区 发布时间: 20231016
...接 提交 1 个回复 Laya_Aaron 赞同来自: off 移除监听 * 从 EventDispatcher 对象中删除侦听器。 * @param type 事件的类型。 * @param caller 事件侦听函数的执行域。 * @param listener 事件侦...
来源: Laya_社区 发布时间: 20180314