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

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

231. 按钮旋转 点击区域 [ 84%]

...er, 并且 setMouseDownHandler: function (context, handler) { this.on(this.EVENT.MOUSE_DOWN, context, handler); }, setMoveHandler: function (context, handler) { this.on(this.EVENT.MOUSE_MOVE, context, handler); }, setMouseUpHandler: function (context, handler) { this.on(this.EVENT.MOUSE_UP, context,...

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

232. 按钮调用on方法,注册了Laya.Event.MOUSE_DOWN后,第一次点击不会被触发,第二次点击才会响应 [ 84%]

按钮调用on方法,注册了Laya.Event.MOUSE_DOWN后,第一次点击不会被触发,第二次点击才会响应 this.btn_begin_fire.on(Laya.Event.MOUSE_DOWN,this,this.onBtnBeginFireClick); 按钮调用on方法,注册了Laya.Event.MOUSE_DOWN后,第一次点击不会被触发,第二次...

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

233. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 84%]

...出来 function onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200...

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

234. 切换后台时,引擎如何判断是否停止定时器? [ 84%]

...structor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{       ...

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

235. [LayaNative2]pad外设键盘无法捕获到KEY_DOWN,KEY_UP,KEY_PRESS事件 [ 84%]

...请问该如何解决?   以下事件无法触发: Laya.stage.on(Laya.Event.KEY_PRESS, this, this.handleKeypress); Laya.stage.on(Laya.Event.KEY_DOWN, this, this.handleKeydown); Laya.stage.on(Laya.Event.KEY_UP, this, this.handleKeyup);   版本:2.13.3 附件 : --> 事件代码.docx 2024-02-28...

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

236. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 84%]

...c initTemplet(){ this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); // this.mFactory.on(Laya.Event.STOPPED,this,this.parseComplete); this.mFactory.on(Laya.Event.ERROR, this, this.onError); this.mFactory.loadAni("res/games/Game_ddz/animation/ddz_figur...

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

237. 关于新手引导 [ 84%]

...estination-out    package view { import laya.display.Sprite; import laya.events.Event; import laya.resource.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; pr...

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

238. 手机调试时http请求错误,返回Request failed Status:0 [ 84%]

...段: let hr = new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event...

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

239. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 84%]

...有效果。 ```typescript package { import laya.display.Text; import laya.events.Event; import laya.utils.Browser; import laya.webgl.WebGL; public class Text_Scroll { private var txt:Text; private var prevX:Number = 0; private var prevY:Number = 0; public function Text_Scroll() { // 不支持WebGL...

来源: Laya2.0_文档 发布时间: 20210715

240. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 84%]

...rag:boolean) { this.m_CanDrag = canDrag; if(this.m_CanDrag) { this.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } else { this.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } }  onMouseDown(e: Laya.Event) { // console.log(e.currentTarget, e.target); if(e.target == this) { this.startDrag(...

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