大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0040 秒)
... ]; Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模块名+类名...
来源: Laya_社区 发布时间: 20180511
... Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100)...
来源: Laya2.0_文档 发布时间: 20210715
...g_url等于“”的时候,底层判断会走到这个接口下面 this.onLoaded(null) load(url, type = null, cache = true, group = null, ignoreCache = false, useWorkerLoader = ILaya.WorkerLoader.enable) { if (!url) { th...
来源: Laya_社区 发布时间: 20201130
...nsole.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotation!" + testUI.ro...
来源: Laya_社区 发布时间: 20180315
...er.load([{url:"image/comp.json", type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { createList(); createItems(); createLoading(); _list.addChild(_loadingBg); Laya.stage.addChild(_list); } protected function createList():void { _list = new List(); _list.itemRen...
来源: Laya_社区 发布时间: 20170323
...e.atlas", "res/atlas/template/ButtonTab.atlas"], Handler.create(this, this.onLoaded)); 而我F12发布,根本没有这个ListPage.atlas,只有ButtonTab.atlas 附件 : --> 2017-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170904
...源 Laya.loader.load(aniPath, Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //加载按钮资源 Laya.loader.load(skin,Handler.create(this...
来源: Laya_社区 发布时间: 20180725
...AsynLoaded (http://127.0.0.1:65353/game/code.js:82641:10) at ResInfo.onLoaded (http://127.0.0.1:65353/game/code.js:12995:61) at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:711:59) at ResInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28) at L...
来源: Laya_社区 发布时间: 20180228
...){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 并没有getRes操作。我按这样子写法就不行
来源: Laya_社区 发布时间: 20180327
...//E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:693:26) at ResInfo.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12657:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:709:27) at ResInfo.__proto.event (file:///E:/Lay...
来源: Laya_社区 发布时间: 20171219