大约有 254 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
Laya_社区(161) Laya3.0_api(22) laya_api(21) Laya2.0_api(16) Laya2.0_文档(13) Laya2.0_示例(8) Laya_示例(8) Laya3.0_文档(5)
...059 • 2017-09-28 11:59 好的,还有个问题。movieChlip里的gotoAndStop()不起作用啊。没有跳到我指定的帧 momo199059 • 2017-09-28 12:00 是在动画已经stop在某一帧的时候,使用gotoAndStop Monica • 2017-09-28 13:43 @momo199059:动画不要做在一帧上 momo19905...
来源: Laya_社区 发布时间: 20170928
...y;time停留的时间点;index动画下标,默认0 function onGotoAndStop(armature: any, time: number, index: number = 0): void { var player = armature.player; time /= player.playbackRate; // 根据速率得出准确的单位时间 // 停留的时间必须小于总...
来源: Laya_社区 发布时间: 20181115
...var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20190117
...t / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError() { console.error("load spine error"); } private play(): void { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this....
来源: Laya_社区 发布时间: 20210813
...ght / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void { if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } 附件 : --> SpineTestProject.zip 2023...
来源: Laya_社区 发布时间: 20230703
...d(mArmature); mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.gr...
来源: Laya_社区 发布时间: 20170406
...); } public destroy() { this.mArmature.stop();//停止龙骨动画播放 this.mFactory.off(Laya.Event.COMPLETE, this, this.parseComplete); this.mArmature.removeSelf();//从显示列表移除龙骨动画本身 this....
来源: Laya_社区 发布时间: 20200618
LAYA转换后,MovieClip的gotoAndStop方法会使子MovieClip偶尔显示不出图片 比如mc.gotoAndStop(7) 此MC里面第7帧含有一个子元件,是一个动画,它有时显示不出,在FLASH中没有这个问题! 一开始我怀疑是子元件STOP在第一帧了,加了手动gotoAn...
来源: Laya_社区 发布时间: 20160718
...ive设为true并且呼叫play(),结束时将父结点设为false并呼叫stop(),但是我发现必须将_currentTime归零,不然效果会与第一次播放的不同。请问我的操作哪里有问题? 2017-12-15 0 1 分享 微博 QZONE 微信 mobile3Dbin 赞同来自: 有没有API可以重...
来源: Laya_社区 发布时间: 20171214
...Event.LABEL, this, this.onEvent); this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); let bound: Laya.Rectangle = this.mArmature.getBounds(); this.mArmature.x = bound.width;//this.mStartX; this.mArmature.y = boun...
来源: Laya_社区 发布时间: 20161122