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

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

51. Skeleton 类播放完成一遍后有没事件或者回调 [ 66%]

...4 是的,如果play的第二个参数是true,监听mArmature.player.on(Event.COMPLETE,this,onComplete);即可 如果play的第二个参数是false,监听mArmature.on(Event.STOPPED, this, completeHandler);即可!   2017-08-07 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: sketon.pla...

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

52. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 66%]

...是hitArea,如下所示 (function () { var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFu...

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

53. 1.7的接口消失 [ 66%]

1.7的接口消失 // ZmyTestManager.Ani.on(Laya.Event.COMPLETE, this, this.OnCurrentAnimationCompleted);//循环动画完成播放单次循环 // ZmyTestManager.Ani.on(Laya.Event.STOPPED, this, this.OnCurrentAnimationStopped);//非循环动画停止播放 这个接口在2.0后就没有了 文档...

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

54. 动画监听回调怎么会无限成倍调用 [ 66%]

动画监听回调怎么会无限成倍调用 this.star.on(Laya.Event.COMPLETE, this, function () { 解决这个问题·两天了·我差点怀疑我的智商,写了好几遍正确的递归思路。结果就是成倍调用, 最后发现是 我在递归方法里面监听动画播放完毕,第...

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

55. 动画播放完后,怎么知道?Animation.play() [ 66%]

...接 提交 1 个回复 qian 赞同来自: 只播放一次获取回调需要Event.STOPPED 循环播放,获取每次播放完成是Event.COMPLETE 2018-01-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fenxw 相关问题 骨骼动画...

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

56. 骨骼动画播放完了,回调隐藏,回调在哪里 [ 65%]

...Templet(); mFactory.loadAni("NiuXingTianXia/spine/start2.sk"); mFactory.on(Event.COMPLETE, this, function () { mArmature = mFactory.buildArmature(); mArmature.pos(650, 330); mArmature.play(0, false); this.addChild(mArmature); }); 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

57. l龙骨动画内存上升 [ 64%]

...    Laya.stage.bgColor = "#ffffff";             Laya.stage.on(Event.CLICK, this, play);         }                  function play():void {             Laya.timer.loop(5000, this, function():void {                 playDragonBonesAnimation("BigAward/Bi...

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

58. laya.physics.Physics [ 64%]

...| Methods Packagelaya.physicsClasspublic class PhysicsInheritancePhysics EventDispatcher Object 2D物理引擎,使用Box2d驱动 Public Properties PropertyDefined By  allowSleeping : Boolean 设置是否允许休眠,休眠可以提高稳定性和性能,但通常会牺牲准确性 Physics ...

来源: Laya2.0_api 发布时间: 20190513

59. 分享:IDE使用SWF动画的销毁与反复创建 [ 64%]

...:IDE使用SWF动画的销毁与反复创建 package {     import laya.events.Event;     import laya.net.Loader;     import laya.utils.Handler;     import view.TestView;          public class LayaUISample {                  public function LayaUISample() {        ...

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

60. 有没有SoundChannel的示例? [ 64%]

...undChannel = new SoundChannel(); SoundManager.addChannel(channel); _btn.on(Event.CLICK, this, soundClick); function soundClick(evt:Event){ alert("channel.isStoped:"+channel.isStoped); if (channel.isStoped){ channel.play(); }else{ channel.stop(); } } channel.isStoped输出是:undefined 2017-01-16 ...

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