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

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

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

62. laya.physics.Physics [ 63%]

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

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

63. 有没有SoundChannel的示例? [ 63%]

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

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

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

65. 版本管理swf找同名的Json文件发现找不到 [ 62%]

...;             if (!data){                 this.event(/*laya.events.Event.ERROR*/"error","file not find");                 return;             }             // console.log("this['_atlasPath']---->",this['_atlasPath']);      ...

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

66. 获取lh动画控制失败【已解决】 [ 62%]

...3 个回复 zwy363 赞同来自: 谢谢。应该是:   layaMonkey.once(Event.HIERARCHY_LOADED, this, function():void{                 //获取Animator动画组件                 var zombieAnimator = (layaMonkey.getChildAt(0) as Sprite3D).getComponentByType(Animat...

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

67. spine 播放错乱 [ 62%]

...mplet(); this.templet.loadAni("spine/10101001.json"); 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.skelet...

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

68. 龙骨skeleton鼠标点击区域的设置 [ 61%]

...gle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      this.mArmature = this.mFactory.buildArmature(0);         this.mArmatureSpr.addChild(t...

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

69. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 60%]

...{ console.log(this.moveKey, this.layer, this.moveMax) this.moveKey.on(Laya.Event.MOUSE_DOWN, this, this.downFun); //记录一开始小圆点的位置,方便鼠标弹起的时候自动返回开始位置 this.moveKey.mode = {x: this.moveKey.x, y: this.moveKey.y} } //按下事件 ModeKey.prototype.do...

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

70. laya.ani.swf.MovieClip [ 60%]

...l Classes | Index | Frames No Frames MovieClipProperties | Methods | Events Packagelaya.ani.swfClasspublic class MovieClipInheritanceMovieClip Sprite Node EventDispatcher Object MovieClip 用于播放经过工具处理后的 swf 动画。 Public Properties Hide Inherited Public Properties Sho...

来源: laya_api 发布时间: 20170929