大约有 1,210 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
Laya_社区(903) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(30) laya_api(2) Laya2.0_api(2)
...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
按钮调用on方法,注册了Laya.Event.MOUSE_DOWN后,第一次点击不会被触发,第二次点击才会响应 this.btn_begin_fire.on(Laya.Event.MOUSE_DOWN,this,this.onBtnBeginFireClick); 按钮调用on方法,注册了Laya.Event.MOUSE_DOWN后,第一次点击不会被触发,第二次...
来源: Laya_社区 发布时间: 20180413
...出来 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
...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
...请问该如何解决? 以下事件无法触发: 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
...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
...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
...段: 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
...有效果。 ```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
...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