• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 506 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)

241. 关于3D动画的ani监听播放完毕后,播放默认动画不行 [ 57%]

...ni监听播放完毕后,播放默认动画不行 this.mAni.on(Laya.Event.COMPLETE,this,this.aniComplete); this.mAni.play("free") aniComplete(type:number):void {    this.mAni.play("ready"); }   播放完指定动画后,这个回调不执行。   附件 : --> pkwang3D.rar 2017-11-16 添加评...

来源: Laya_社区 发布时间: 20171116

242. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 57%]

...   this.templet.loadAni(this.aniPath);         this.templet.on(Event.COMPLETE, this, this.parseComplete);         this.templet.on(Event.ERROR, this, this.onError);     }     parseComplete() {         this.skeleton = this.templet.buildArmature();         Laya.stage.addChild(this....

来源: Laya_社区 发布时间: 20211013

243. 加载解析ByteArray问题 [ 57%]

...layaAir加载解析: var loader:Loader = new Loader(); loader.on(Event.COMPLETE, this, loadEnd); loader.load("atlas/byarr.byte",Loader.BUFFER); private function loadEnd(data:*):void { if (data is ArrayBuffer) { var byts:Byte = new Byte(data); byts.pos = 0; var fr:int = byts.getByte(); var a:int = ...

来源: Laya_社区 发布时间: 20170308

244. LayaFlash是否支持post数据的传输? [ 57%]

...er.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,onDataComplete); var urlRequest:URLRequest=new URLRequest("http/xxx.xxx.xxx"); urlRequest.method=URLRequestMethod.GET; urlLoader.load(urlRequest);   2015-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20151127

245. ani动画问题,cannot read property '_tf' of null [ 57%]

....ani1.play(0, false);//出错了             this.ani1.on(Laya.Event.COMPLETE, this, () => {                 this.removeSelf();             });         } 这样播放动画有时候会报错,如附件图,但有时候又不报错 附件 : --> 2017-06-14 添加评论 免...

来源: Laya_社区 发布时间: 20170614

246. 我想在动画播放结束后加一个事件,怎么加? [ 57%]

...复 176*****233 赞同来自: geo 监听_ani的完成事件 _ani.on(EVENT.COMPLETE, this, function(){}); 2018-04-28 1 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 谢谢! 2018-05-02 0 0 分享 微博 QZONE 微信 AlexNine 赞同来自: 可以直接在play后面加个回调 function playAn...

来源: Laya_社区 发布时间: 20180428

247. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 56%]

...etBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(...

来源: Laya2.0_文档 发布时间: 20210715

248. httpRequest send返回Request failed Status:0 [ 56%]

...); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // private com...

来源: Laya_社区 发布时间: 20180629

249. laya.net.Loader_API3.0 [ 56%]

...y> load(url: string | ILoadURL | (string | Readonly<ILoadURL>)[], complete?: Handler, progress?: Handler, type?: string, priority?: number, cache?: boolean, group?: string, ignoreCache?: boolean, useWorkerLoader?: boolean): Promise<any> Defined in laya/net/Loader.ts:204 加载资源...

来源: Laya3.0_api 发布时间: 20231115

250. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 56%]

...te = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; ...

来源: Laya_社区 发布时间: 20171011