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

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

81. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 73%]

... else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, ...

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

82. 获取的ui页面里下on事件无法触发 [ 73%]

...ameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Button {toggle: false, _bitma...

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

83. 点击区域问题 [ 73%]

...000"); sp.hitArea = new laya.maths.Rectangle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() {     sp.graphics.clear();     var rc:number = Math.floor(Math.random()*0xffffff);     sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几...

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

84. 声音播放问题 native下采用Audio播放导致声音每次都是从头播放 [ 72%]

...       let _pause:boolean = false;         btn1.on(Laya.Event.CLICK,this,()=>{             if(!_pause)return;             sound.pause();             _pause = false         })         btn2.on(Laya.Event.CLICK,this,()=>{  ...

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

85. 新手引导在ios浏览器表现异常 [ 72%]

...ode = Laya.Stage.SCREEN_NONE;             Laya.stage.on(Laya.Event.RESIZE, thisthis.windowResized);         }         windowResized(){             let sp = new Laya.Sprite();             sp.graphics.drawRect(0,0,Laya.stage.width,Laya.stag...

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

86. Laya 问题合集 希望会的大神能帮我解答一下,谢谢 [ 72%]

...来,否则默认隐藏,我想到的是,update 里面放事件,Laya.Event.Click  ,但是不知道怎么表达,this. ? .on( Laya.Event.Click, this, function(){...})  问号那我应该填什么。。。 2018-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

87. 如何在按钮监听中获取按钮本身 [ 72%]

...有的AnimationClip呢? 怎样获取浏览器地址传过来的GET参数 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 分享:LayaAir下如何获取图集下的小图资源? 怎么获取对象的坐标 List滑动条会引起单元格上的按钮点击后多次触发点击事...

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

88. 请问UI之间的场景切换要怎么写 [ 72%]

...(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = fu...

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

89. cavans上触发不了input的点击事件 [ 72%]

...添加一个sprite,给sprite添加一个点击事件,this.hitimg.on(Laya.Event.CLICK,this,this.onStart); onStart: _proto.onStart = function(){ console.log(111111122222); $("#fileInput").trigger('click'); } 可以打印数字,但是触发不了input控件。 <input id="fileInput" type="fil...

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

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

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