大约有 43 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0032 秒)
...背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.load...
来源: Laya_社区 发布时间: 20190708
...载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super)...
来源: Laya_社区 发布时间: 20181220
...g_url等于“”的时候,底层判断会走到这个接口下面 this.onLoaded(null) load(url, type = null, cache = true, group = null, ignoreCache = false, useWorkerLoader = ILaya.WorkerLoader.enable) { if (!url) { th...
来源: Laya_社区 发布时间: 20201130
...oad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和取资源的代码。代码是参照 htt...
来源: Laya_社区 发布时间: 20180830
...... 5771:8) 02-06 14:59:43.858 6545 6658 I LayaBox : at ResInfo.onLoaded (http://10.0.1.72/game/dev-loca ... 913:61) 02-06 14:59:43.858 6545 6658 I LayaBox : at EventHandler.__proto.runWith (http://10.0.1.72/game/dev-loca ... 711:59) 02-06 14:59:43.858 6545 6658 I LayaBox :...
来源: Laya_社区 发布时间: 20180206
...ader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.l...
来源: Laya_社区 发布时间: 20171213
... "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage.addChild(GamePage); } })(); 2018-10-29 添加评论 免...
来源: Laya_社区 发布时间: 20181029
...ya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this cla...
来源: Laya_社区 发布时间: 20180314
...a.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添加进度组件UI if (!this.Progress) { this.Progress = new Progress(); t...
来源: Laya_社区 发布时间: 20170803
...r.__proto._endLoad (http://www.xxx.com/LayaUISample.max.js:32270) at onLoaded (http://www.xxx.com/LayaUISample.max.js:32249) at Loader.<anonymous> (http://www.xxx.com/LayaUISample.max.js:32242) at EventHandler.__proto.runWith (http://www.xxx.com/LayaUISample.max.js:716) ...
来源: Laya_社区 发布时间: 20170522