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

大约有 519 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)

251. 关于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

252. 关于spine资源加载以及创建Laya.Templet问题 [ 57%]

....Templet = new Laya.Templet(); tm.loadAni("res/imgs.sk"); tm.on(Laya.Event.COMPLETE, this,()=>{       //是不是只能在这里面创建动画,这里创建,那我如何全局使用????????       var skp = this.buildArmature(1);       skp.showSkinByIndex(1); })   我...

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

253. 加载解析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

254. 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

255. [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

256. 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

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

...复 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

258. 安装layaair2-cmd一直失败 [ 56%]

...blem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-02-11T10_54_16_317Z-debug.l og     2020-02-11T10_54_16_317Z-debug.log   31916 info lifecycle jpeg-recomp...

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

259. 用最新版本的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

260. 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