大约有 220 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
Laya_社区(150) Laya3.0_api(20) Laya2.0_文档(19) Laya3.0_文档(14) Laya2.0_示例(9) Laya_示例(6) laya_api(1) Laya2.0_api(1)
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"...
来源: Laya2.0_文档 发布时间: 20210714
...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...
来源: Laya_社区 发布时间: 20180117
...擎有没有管理或访问系统剪贴板的方法函数 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 注册函数里面 事件侦听函数的执行域 的详解 关于customRender函数不执行的问题...
来源: Laya_社区 发布时间: 20170611
js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...
来源: Laya_社区 发布时间: 20171024
...的api~ Dialog关闭时如何向open他的页面传值? 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 构造函数不能进断点 Laya.loader.create 进度回调函数执行两次 怎么停止正在运行...
来源: Laya_社区 发布时间: 20170308
...JS 如: var atlas:Object[] = [{ url: "res/atlas/choujiang.js", type: Loader.TEXT }, { url: "res/atlas/choujiang.json", type: Loader.ATLAS }, ]; Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this...
来源: Laya_社区 发布时间: 20180511
...到create函数。问题很好重现。 IED 2.5版本 如果不使用Laya.loader.load加载后创建prefab是没有问题的。 Laya.loader.load(url, Laya.Handler.create(this, function (obj: any) { let prefab = Laya.Pool.getItemByCreateFun('prefab_' + name, obj.c...
来源: Laya_社区 发布时间: 20200409
...张图片,同样的图片在panel中显示不出来 var t = Laya.loader.getRes("comp/image.png"); var ape1 = new Laya.Sprite(); ape1.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape1); //面板 var panel = new laya.ui.Panel(); panel.width = 500; ...
来源: Laya_社区 发布时间: 20170401
... constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onL...
来源: Laya_社区 发布时间: 20180507
...Mode="horizontal"; //加载FGUI中的文件 var ProgressBar,resArray; Laya.loader.load([ {url:"res/Public.fui",type:laya.net.Loader.BUFFER}, {url:"res/Public@atlas_ucn9w.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas_ucn90.png",type:laya.net.Loader.IMAGE}, {url:"res/Public@atlas0.png",type...
来源: Laya_社区 发布时间: 20171207