大约有 24 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0036 秒)
.../Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded)); /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded() { console....
来源: Laya_社区 发布时间: 20171207
...oadAtlas("res/atlas/imgs/role/wp116.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //添加到舞台 Laya.stage.addChild(this.roleAni); //创建动画模板dizziness Laya.Animation.createFrames(this.aniUrls("die", 4), "die"); Laya.Animation.createFrames(this.aniUrls(...
来源: Laya_社区 发布时间: 20171228
...g_url等于“”的时候,底层判断会走到这个接口下面 this.onLoaded(null) load(url, type = null, cache = true, group = null, ignoreCache = false, useWorkerLoader = ILaya.WorkerLoader.enable) { if (!url) { th...
来源: Laya_社区 发布时间: 20201130
...的时候,源码里这一步会的url为“”的时候,会执行this.onLoaded(null)这一步_ _proto.load=function(url,type,cache,group,ignoreCache,useWorkerLoader){ (cache===void 0)&& (cache=true); (ignoreCache===void 0)&& (ignoreCache=false); ...
来源: Laya_社区 发布时间: 20200427
..." }; var blobFragment = []; function loadBytes(fragment: ArrayBuffer, onload: any = null): Laya.HTMLImage { var blob; try { blobFragment[0] = fragment; blob = new Blob(blobFragment, blobType); } catch (e) { var win: any = window; win.BlobBuilder = win.BlobBuilder || win.WebKitBlobBuilder || win...
来源: Laya_社区 发布时间: 20170502
...bGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,thi...
来源: Laya_社区 发布时间: 20171108
...d([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后初始化list数据 listP.add.on(Event.CLICK,this,onAddCl...
来源: Laya_社区 发布时间: 20170313
...= (new Laya.SoundManager._soundClass()); sound.load(sourceUrl); thisLoader.onLoaded(sound); } else { thisLoader.event(Laya.Event.ERROR, "Load sound failed"); } } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; } _loadHttpRequestWhat(url, contentType) { var...
来源: Laya_社区 发布时间: 20200103
...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
...aURL(file.files[0]); //转换图片格式为字符编码 } } }; fileReader.onload = function(e):void { if(Laya.Browser.window.FileReader.DONE == fileReader.readyState) { var data = e.target.result; img.onload = function(){ var width = img.width; var height = img.height; if(width<100&&heig...
来源: Laya_社区 发布时间: 20190129