大约有 182 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0042 秒)
Laya.Handler.create 加载图片回调参数问题 我想在调用loadImage加载图片完成之后把某个参数带到Handler里,但是按网上的说法我一直是失败, 示例代码: //初始化微信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(Laya.Browser.width, Laya.Brows...
来源: Laya_社区 发布时间: 20180621
handler携带的参数在回调函数里面怎么获取? handler携带的参数在回调函数里面怎么获取? 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: Laya.loader.load(...
来源: Laya_社区 发布时间: 20180330
Laya.Handler.create 回调参数问题 var ape ; function Init() { Laya.init(400, 800, Laya.WebGL); Laya.stage.bgColor = "#999911"; ape = new Laya.Sprite(); Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,...
来源: Laya_社区 发布时间: 20180510
如何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handl...
来源: Laya_社区 发布时间: 20170221
...何取得场景实例? 我看了Laya.Scene.open中的参数: complete:Handler (default = null) — 打开完成回调,返回场景实例(可选) 那么我要怎么从这个handler里边得到打开场景实例呢: 以下是我写的typescript代码: class Main { onConfigLoaded(...
来源: Laya_社区 发布时间: 20181206
Handler.create() 方法第四个参数once默认值的API为false,而引擎得实际默认值为true 如题 附件 : --> 2019-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 kylin 赞同来自: 检查了...
来源: Laya_社区 发布时间: 20190319
...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
...ge { import laya.display.Sprite; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stag...
来源: Laya_社区 发布时间: 20160913
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 ...
来源: Laya_社区 发布时间: 20180425
List表单renderHandler问题 通过Handler.create()方法创建的渲染函数中,只会在表单第一格渲染时调用一次,便再也不被调用。而通过new Handler()创建的则一切正常。请问这是为啥啊= = 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180704