大约有 645 项符合查询结果, 库内数据总量为 30,970 项。 (搜索耗时: 0.0061 秒)
使用Laya.loader.load加载zip资源.稍微大一点,比如300多k.ios系统就会回调空数据 demo已上传.多测试几个手机,我测试了4个,有两个下载失败...... 方法中的 "http://ktv.x5.qq.com/dynamic_n ... ot%3B,使用ios访问下载.无法下载完成(之前写的项目会...
来源: Laya_社区 发布时间: 20180319
...游戏加载不了,路径没问题,麻烦看下 加载代码 Laya.loader.load([ { url:"res/Bag_atlas0.png", type:Laya.Loader.IMAGE }, { url:"res/Bag_atlas0_1.png", type:Laya.Loader.IMAGE}, { url:"res/Bag.json", type:Laya.Loader.BUFFER} ...
来源: Laya_社区 发布时间: 20200429
... var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private f...
来源: Laya_社区 发布时间: 20170628
...*=null):void { // var texture:Texture = Loader.getRes("res/Dragon.png"); // var data:ArrayBuffer = Loader.getRes("res/Dragon.sk"); factory = new Templet(); factory.on(Event.COMPLETE, this, onSkeletonDat...
来源: Laya_社区 发布时间: 20160902
资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...
来源: Laya_社区 发布时间: 20161230
...PCFType = 3; // 批量预加载资源 // Laya.loader.create([ // "res/threeDimen/staticModel/grid/plane.lh", // "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", // // "res/threeDimen/particle/RadiusMode.lh", ...
来源: Laya_社区 发布时间: 20190509
...码 先预加载 skinsSecond.push( { url:"allResources/qfbutton.png", type:Loader.IMAGE }); 然后就是一些和服务器交互的操作了,在接到某一条数据,需要用到资源的时候的代码; for (var i:Number = 0; i < allArea.length;i++) { var but:Bu...
来源: Laya_社区 发布时间: 20170320
... 柠檬_酸 赞同来自: 今天也遇到了哈,new Texture就行,Laya.loader.load试了还是 不行 var Texture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){ this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 ...
来源: Laya_社区 发布时间: 20190508
...gress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: "images/4.png", type: Laya.Loader.IMAGE } , { url: "images/5.jpg", type: Laya.Loader.IMAGE } , { ur...
来源: Laya_社区 发布时间: 20171217
请问一下loader进度的问题 我发现Laya.loader.load([X,x,xx,x,x,x,x]); 我加载了十几个文件,里面有一个文件特别大,然后进度条很快就90%多,然后就不动了,看谷哥的开发者工具,发现是那个大文件在加载,但进度条不动,是不是加载...
来源: Laya_社区 发布时间: 20170712