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

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

551. JS中关于按钮注册监听后在处理函数访问不到类成员变量的问题 [ 78%]

...在处理函数访问不到类成员变量的问题 this.btnLogin.on(Laya.Event.CLICK, null, this.OnLoginClick); LoginView.prototype.OnLoginClick= function() { this.dlg.setContent("暂时无法登录"); }; 解决方法式在第一行代码第二个参数一定要传this(被某老师坑惨) 如这样...

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

552. 分享:Dragonbones/Spine的换肤操作 [ 78%]

...Templet; import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var templete:Templet;//动画模板类 private var skeleton:Skeleton;//骨骼动画类 private var c...

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

553. 官方案例里摄像机绕物体旋转脚本的问题 [ 78%]

...tor3.distance(this.transform.position, this.AroundPos); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpd...

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

554. 注册函数里面 事件侦听函数的执行域 的详解 [ 78%]

注册函数里面 事件侦听函数的执行域 的详解 sp.on(Event.CLICK, this, fun) 有时候是this,有时候是null 到底怎么区分这个 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

555. window 下接收不到事件,Click,EnterFrame都接受不到 [ 78%]

...: 708 关注: 2 人 黄进 • 2018-06-11 17:23 啥意思? Content.once(Event.CLICK,this,OnMouseDown); Content.once(Event.MOUSE_OUT,this,OnMouseDown); Laya.stage.once(Event.FRAME,this,onEnterFrame); 这样事件都监听不到? Laya_Aaron • 2018-06-11 17:52 你描述的我也不懂是什么意...

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

556. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 78%]

...Right.bottom+100; }  //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Log...

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

557. Laya.loader.load加载位图字体 [ 78%]

...          this._data=data;                 this.event(/*laya.events.Event.PROGRESS*/"progress",0.5);                 return this._loadImage(this._url.replace(".fnt",".png"));             }else {                 var bFont=new Bitma...

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

558. Laya.stage.visible=false不起作用 [ 78%]

...在3d场景中应该怎样实现? Ignored attempt to cancel a touchmove event with cancelable=false Ignored attempt to cancel a touchmove event with cancelable=false Ignored attempt to cancel a touchmove event with cancelable=false islooping的false和true的切换 3D物体active从false设置为t...

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

559. laya.display.AnimationBase [ 78%]

...asses | Index | Frames No Frames AnimationBaseProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationBaseInheritanceAnimationBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画基类,提供了基础的动画播放控制方法...

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

560. 【官网代码】加载dom音频报错,怎么回事? [ 78%]

...3-4-1 其中,加载dom音频报错,怎么回事? package{import laya.events.Event;import laya.net.HttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var AudioContext:Object;private var audioContext:Object;private var analyser:Object;private var audioBuffer...

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