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

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

61. 如何能监听到TouchStart和TouchEnd事件 [ 67%]

...性值。*/         static ERROR: string;         /** 定义 complete 事件对象的 type 属性值。*/         static COMPLETE: string;         /** 定义 loaded 事件对象的 type 属性值。*/         static LOADED: string;         /** 定义 progres...

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

62. 同步龙骨插槽动画方案 [ 67%]

...ctory = new Laya.Templet();         this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete, [aniMode]);         this.mFactory.loadAni(url);     }      private parseComplete(aniMode: number, fac: Laya.Templet): void {         this.mArmature = thi...

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

63. laya.display.Animation [ 67%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite  loadImages(urls:...

来源: laya_api 发布时间: 20170929

64. 播放骨骼动画 [ 67%]

...ya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmature(0); this.avatar.play(0,true); 2017-07-18 添加评论 免...

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

65. laya.display.Animation [ 66%]

...。选择动画模版的过程如下:1.Animation loadImage(url:String, complete:Handler = null):Sprite 加载并显示一个图片。相当于加载图片后,设置texture属性 注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取...

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

66. 图集动画结束回调有延迟 [ 66%]

...s.ded.on(Laya.Event.LABEL, this, this.onHitOver);  this.ded.on(Laya.Event.COMPLETE, this, this.onHitOver);  两种方法都会有延迟,不能100%执行 2018-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回...

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

67. Laya 中用什么事件可以检测声音是否播放结束? [ 66%]

... Channel(); _channel=_sound.play( ); _channel.addEventListener(Event.SOUND_COMPLETE,onComplete); 而Laya 中用什么事件可以检测声音是否播放结束? 2017-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

68. spine动画放大后,遮罩显示不正常 [ 66%]

...     let mFactory = new Templet();         mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);         mFactory.on(Event.ERROR, this, this.onError);         mFactory.loadAni(path);     }      onError() {         trace("error");   ...

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

69. 怎么让动画播放到最后一帧然后消失? [ 66%]

... 提交 2 个回复 cuixueying 赞同来自: 请为你的动画监听Event.COMPLETE事件,该事件会再动画播放完一遍后触发,可以在该回调里将动画停止并销毁! 2017-02-16 0 0 分享 微博 QZONE 微信 186*****260 赞同来自: 谢谢 2017-02-16 0 0 分享 微博 QZONE ...

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

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

...); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete() { mArmature = mFactory.buildArmature(1); mArmature.x = 100; mArmature.y = 200; var rect=new Laya.Rectangle(-200,-2...

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