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

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

71. 感觉实例之间是关联的,求指教。(已解决) [ 64%]

...e) { this.imag= img; this.imageName=tempImageName; this.imag.on(Laya.Event.MOUSE_UP, this, this.hit); //this.img.on(Laya.Event.) } var _proto = Poker.prototype; _proto.show = function () { this.imag.y = 50; } _proto.hit = function () { if ( this.imag.y == 50) { this.imag.y = 150; } else if(this.imag...

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

72. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 64%]

...imag.on(Event.MOUSE_DOWN,this,onDown);             imag.on(Event.MOUSE_UP,this,onUP);         }                  private function onDown():void{             imag.startDrag();         }         private function onUP():void{             imag.sto...

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

73. laya.ui里的tag不能赋值使用? [ 64%]

...能赋值sh使用吗?     masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评...

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

74. 射线检测-点击行走 [ 63%]

...var _vector3 = new Laya.Vector3(); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { Laya.Vector3.add(_outHitInfo.position, _offset, _vector3); Laya.Tween.to(_position, {x: _vector3.x, y: _vector3.y, z: _vector3.z}, 500/**,Ease.circIn*/); Laya.Q...

来源: Laya_示例 发布时间: 20260106

75. [LayaAirIDE3]2d相机打包后问题 [ 63%]

....MOUSE_MOVE, this, this.onTouchMove);         Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onTouchEnd);         Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onTouchEnd);     }      private onTouchStart(e: Laya.Event) {         // 如果摇杆被禁用,不处理任何事件   ...

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

76. 请问这是原因? [ 62%]

...e2.graphics = graphics2; Laya.stage.addChild(sprite2); Laya.stage.on(Event.MOUSE_UP,this,mouseUP); } public var flagCircle:Graphics = new Graphics(); public var flag:Sprite = new Sprite(); //让直线在圆内旋转 public function mouseUP():void{ var point:Point = sprite.globalToLocal(new Point(Lay...

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

77. Stage中删除不掉Scene [ 61%]

Stage中删除不掉Scene Laya.stage.on(Laya.Event.MOUSE_UP, this, function () {     var str = "";     if (!hit.sprite3D) {         str = "点击选取的几何体";     } else {         Laya.stage.removeChild(scene3D);     }     console.log(str); });     每次删除scene3D后...

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

78. 无法清除指定定时器 [ 61%]

...   trace("______________________");         } this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.timer.clear(this, this.looppp);             SoundManager.playSound("res/sound/onClick.wav");         } 我这边测...

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

79. down点击事件一直派发情况 [ 61%]

...self, self.onHandle); 这里用CLICK事件替代,或者同时监听一个MOUSE_UP事件,当鼠标抬起时,将MOUSE_DOWNshi事件移除 2017-03-07 0 1 分享 微博 QZONE 微信 yanmingjie 赞同来自: demo已经上传 重现步骤: (1)运行游戏 (2)打开控制台(f12) (3...

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

80. 【求助】关于Cannot read property 'visible' of undefined问题 [ 61%]

...entFood.on(Event.MOUSE_DOWN, this, onMouseDown); this.currentFood.on(Event.MOUSE_UP, this, onMouseUp); }currentFood也是Food类,是用来指向在foodList中处于下标index的元素,我是想在用currentFood指向某个元素,给这个元素添加事件,让其可以执行一些动作,...

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