大约有 28 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Handler.create的回收问题 Handler.create的最后一个参数,官方解释是 once:Boolean (default = true) — 是否只执行一次,如果为true,回调后执行recover()进行回收,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; impor...
来源: Laya_社区 发布时间: 20171221
Laya.Handler.create和new Laya.Handler有啥区别 this.sList.mouseHandler = Laya.Handler.create(this, this.onMouse);//鼠标响应事件 this.sList.mouseHandler = new Laya.Handler(this, this.onMouse) ; // 鼠标事件响应. 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170425
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @para...
来源: Laya_社区 发布时间: 20161205
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 update这个 数值改变就会触发回调,也就是过程中的回调 2018-01-09 0 1 分享 微博 QZONE 微信 kezhiyu 赞同来自: let a = new...
来源: Laya_社区 发布时间: 20180109
List表单renderHandler问题 通过Handler.create()方法创建的渲染函数中,只会在表单第一格渲染时调用一次,便再也不被调用。而通过new Handler()创建的则一切正常。请问这是为啥啊= = 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180704
... Laya.Scene3D; Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){ for(var i=0; i<3; i++){ var ball = myscene.addChild(sp.clone()); ball.name = i.toString();...
来源: Laya_社区 发布时间: 20200723
list的Handler.create的点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(i...
来源: Laya_社区 发布时间: 20171129
...先声明一个预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变...
来源: Laya_社区 发布时间: 20200104
...2.png", "res/3.png", "res/4.png", "res/5.png", "res/6.png", "res/7.png" ], Handler.create(this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded),Handler.create(this, onProgress)); } private function onProgress(v:Number):void { tra...
来源: Laya_社区 发布时间: 20180428
...aya.Tween.to(obGold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){ trace('obGold.value', obGold.value) }), 0) tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 ...
来源: Laya_社区 发布时间: 20190520