大约有 171 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
...微博 QZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void { var spr:Sprite = new Sprite(); spr.loadImage("res/1.pkm"); spr.pos(100, 100); Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这...
来源: Laya_社区 发布时间: 20181219
...调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.ad...
来源: Laya_社区 发布时间: 20170825
...tring):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearImg(url:string):void { Laya.Loader.clearRes(url); } 2018...
来源: Laya_社区 发布时间: 20180109
...uf/bag.proto", type:Loader.TEXT } ); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); 首先确认下类型是为TEXT吗,如果这样写就是报如下错 Uncaught Error: Parse error at line 1: unexpected 'undefined' at Parser.ProtoBuf.DotProto.ParserPrototype...
来源: Laya_社区 发布时间: 20161223
...名字.lh"}, {url:"同上.lh"}, {url:"同上"}, {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 灬倪先森_ 相关问题 2.0一不小心删了bin目录下的某个场...
来源: Laya_社区 发布时间: 20180529
...omplete (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:68463:8) at Handler.__proto.run (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:36051:26) at onComplete (file:///E:/ycyheroH5/ycyZYWZW/Client/bin/js/bundle.js:51721:15) at Handler.__proto.runWith (file:///E:/ycyheroH5/ycyZYWZW/Cli...
来源: Laya_社区 发布时间: 20181014
...ap/map.json",new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), new Handler(this, completeHandler)); function completeHandler(params) { console.log("brj laya h5 加载完成.."); } 2017-09-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20170918
... { url:"res/Bag.xml", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoaded)); 在手机头条得到的数据是空的,手机微信是正常的,麻烦指导下 附件 : --> 2019-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190726
...接 提交 2 个回复 Yangcy 赞同来自: Laya.loader.load("abc.json", Handler.create(this, onAssetLoadedSound), Handler.create(this, progressHandler), Loader.SOUND); 第一次加载出来: [list=none] [*]0: {column: "0", duration: "0", mode: "点", time: "3076"}[/*] [*]1: {column: ...
来源: Laya_社区 发布时间: 20181122
...tmapFont = new BitmapFont(); var url=urls[i]; bitmapFont.loadFont(url, new Handler(this, this.onFontLoaded, [bitmapFont,value])); } private onFontLoaded(bitmapFont: BitmapFont,value1:string):void { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(this.fontName, bitmapFont); var txt: Text = new ...
来源: Laya_社区 发布时间: 20190705