大约有 708 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
Laya_社区(372) Laya3.0_api(110) Laya2.0_api(105) laya_api(67) Laya2.0_文档(26) Laya2.0_示例(10) Laya3.0_文档(9) Laya_示例(9)
... let mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(path); } onError() { trace("error"); ...
来源: Laya_社区 发布时间: 20190730
...PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send(NameJosn, null, 'get', 'xml'); function method():void ...
来源: Laya_社区 发布时间: 20160626
...失败ubuntu-bold.ttf"); }); ttfloader.complete = Laya.Handler.create(this, () => { let txt = new Laya.Text(); txt.text = "hello world!"; txt.font = "ubuntu"; ...
来源: Laya_社区 发布时间: 20220330
...?因为同是加载多个相同的模型对象 第一个显示不出来,complete执行了,奇了怪了 2019-01-27 0 0 分享 微博 QZONE 微信 赞同来自: 你的代码写的有点乱 我就单独给你改了一个动画挂点去挂点的例子 检验过是好的 你还用了内...
来源: Laya_社区 发布时间: 20190122
...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Function = null):void 加载并显示一个图片。 Graphics restore():void 返回之前保存过的路径状态和属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):void 旋转当...
来源: laya_api 发布时间: 20170929
...戏有个loading页面 我通过load方法把资源全部load之后,在complete方法中通过getRes方法获取不到。部分代码如下: var resources = [ { url: "res/atlas/images/guide.atlas", type: Laya.Loader.ATLAS }, { url: "config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load...
来源: Laya_社区 发布时间: 20180816
... _templet = new Templet(); _templet.on(Event.COMPLETE,this,parseComplete); _templet.on(Event.ERROR,this,onError); _templet.loadAni("res/role/1/left/left.sk"); } private function parseCo...
来源: Laya_社区 发布时间: 20170204
...erval = interval; } this.on(Laya.Event.COMPLETE, this, () => { this.destroy(); }); this.frameIndex = 0; isLoop ? this.toFrameIndex = -1 : this.toFrameIndex = (cols * rows -...
来源: Laya_社区 发布时间: 20201211
...的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.url, this.current...
来源: Laya_社区 发布时间: 20200629
...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; /...
来源: Laya2.0_文档 发布时间: 20210714