大约有 156 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)
Laya_社区(102) Laya_示例(13) Laya2.0_文档(12) Laya2.0_示例(10) Laya2.0_api(6) laya_api(6) Laya3.0_文档(6) Laya3.0_api(1)
...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
...tate(new Laya.Vector3(-45, 180, 0), true, false); Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { this.index = 0; //获取每次生成路径 this._everyPath = pathFingding.findPath(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.path[...
来源: Laya_示例 发布时间: 20241118
...无法 const MOUSE_EVENTS = new Set([ Event.MOUSE_DOWN, Event.MOUSE_UP, Event.MOUSE_MOVE, Event.CLICK, Event.DOUBLE_CLICK, Event.RIGHT_CLICK, Event.RIGHT_MOUSE_DOWN, Event.RIGHT_MOUSE_UP, Event.MOUSE_OVER, Event.MOUSE_OUT, Event.MOUSE_WHEEL ]); s...
来源: Laya_社区 发布时间: 20231106
...eContainer.on(Event.MOUSE_DOWN, this, downHandler); gameContainer.on(Event.MOUSE_UP, this, upHandler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private function upHandler():void { trace("KouTu.upHandler()"); /...
来源: Laya_社区 发布时间: 20170315
...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
...FF40"; Laya.stage.addChild(label); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { var str = ""; for (var i = 0; i ; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenM...
来源: Laya_示例 发布时间: 20241118
...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
....refreshList.array = data; // 添加事件监听 this.refreshList.on(Event.MOUSE_UP, this, this.stageOnMouseUp); this.refreshList.on(Event.MOUSE_OUT, this, this.stageOnMouseUp); //游戏逻辑关联引擎的停止滚动接口 this.refreshList.scrollBar.stopMoveLimit = this.scrollBarIsStopBind.bind(t...
来源: Laya2.0_示例 发布时间: 20241118
...move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,this,onUp); } private function onUp():void { Laya.stage.off(Event.MOUSE_MOVE,this,onMove); } private function onDown(e:Event):void { Laya.stage.on(Event.MOUSE_MOVE,this,onMove); } private function onMove():void { // ...
来源: Laya_社区 发布时间: 20170106
...; Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Event.MOUSE_MOVE,this,bb) }) function bb(e){ s.graphics.clear(); arr[arr.length-1].push(e.stageX); arr[arr.length-1].push(e.stageY); for(var i=0;i<arr.length;i++){ s.graphics.d...
来源: Laya_社区 发布时间: 20180510