大约有 399 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(126) Laya3.0_api(102) Laya2.0_api(77) laya_api(59) Laya2.0_文档(13) Laya2.0_示例(8) Laya3.0_文档(7) Laya_示例(7)
...1000, 900); //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseC...
来源: Laya2.0_文档 发布时间: 20210715
...Request(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); consol...
来源: Laya_社区 发布时间: 20180830
...fer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.parseData(tTexture, arraybuffer, 10); } function parseComplete() { for (var i = 0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFact...
来源: Laya_示例 发布时间: 20251130
...:void 发送 HTTP 请求。 HttpRequestEvents Event Summary Defined By complete请求结束后调度。HttpRequest error请求出错时调度。HttpRequest progress请求进度改变时调度。HttpRequestProperty Detaildatapropertydata:* [read-only] 返回的数据。 Implementation ...
来源: laya_api 发布时间: 20170929
...L); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //...
来源: Laya2.0_文档 发布时间: 20210715
...请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加载线...
来源: laya_api 发布时间: 20170929
... = null):void 结束加载,处理是否缓存及派发完成事件 Event.COMPLETE 。 Loader event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader getRes(url:String):*[static] 获...
来源: laya_api 发布时间: 20170929
...:void 发送 HTTP 请求。 HttpRequestEvents Event Summary Defined By complete请求结束后调度。HttpRequest error请求出错时调度。HttpRequest progress请求进度改变时调度。HttpRequestProperty Detaildatapropertydata:* [read-only] 返回的数据。 Implementation ...
来源: Laya2.0_api 发布时间: 20190513
...0,1,2模式都不行 //加载动画 load(aniUrl: string,emoji?:string,complete?:Handler):void{ if (emoji) { this.emoji=emoji; } if (complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // thi...
来源: Laya_社区 发布时间: 20180824
...动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第一个...
来源: Laya2.0_文档 发布时间: 20210715