大约有 187 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0044 秒)
Laya_社区(124) Laya2.0_文档(21) Laya2.0_示例(11) Laya3.0_文档(9) Laya_示例(9) Laya2.0_api(6) laya_api(6) Laya3.0_api(1)
...lic onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -1) { if (this.list_rule.scrollBar.value < this.m_dow...
来源: Laya_社区 发布时间: 20171202
touches一直为undefined Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onCtrlMoveRockerTouchDown); ...... function onCtrlMoveRockerTouchDown(e) { console.log("onCtrlMoveRockerTouchDown()"); var touches = e.touches; if(touches) { ...取出前两个touch进行计算 } }...
来源: Laya_社区 发布时间: 20171202
...tic function _stageOnFocus():void { _isActive = true; Laya.stage.off(Event.MOUSE_DOWN, null, _stageOnFocus); if (_blurPaused) { if (_tMusic) { playMusic(_tMusic, _musicLoops, _musicCompleteHandler, _musicPosition); } _blurPaused = false; } if(WebAudioSound.ctx.state == "interrupted") { WebAudioSound...
来源: Laya_社区 发布时间: 20171019
...is.txt.color = "#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ private startScrollText(e: Event): void { this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.scrollText);...
来源: Laya2.0_文档 发布时间: 20210715
...3D).transform.position) } onStart(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya.stage.mouseX,Laya.st...
来源: Laya_社区 发布时间: 20190621
...lic onMouse(e: Laya.Event, index: number): void { if (e.type == Laya.Event.MOUSE_DOWN) { this.m_downValue = this.list_rule.scrollBar.value; } else if (e.type == Laya.Event.MOUSE_UP || e.type == Laya.Event.MOUSE_OUT) { if (this.m_downValue > -1) { if (this.list_rule.scrollBar.value < this.m_dow...
来源: Laya_社区 发布时间: 20181112
...? this.height : 1; this.mask.addChild(this.content); this.content.on(Event.MOUSE_DOWN, this, this.onMouseDown); this.content.on(Event.MOUSE_WHEEL, this, this.onMousewheel); } this.createText = function (_content, _fontSize, _color, _width, _autoSize, _wordWrap, _ID) { var txt = new Text(); txt.text ...
来源: Laya_社区 发布时间: 20161118
...demo上来我看看 lengyu • 2018-04-19 15:11 @w1114367261: spr.on(Event.MOUSE_DOWN, this, onStartDrag,arr); spr.on(Event.MOUSE_UP,this, onStopDrag,arr);,我就这两个函数,监听spr,这个sprite对象,然后再舞台上死命甩,就有可能会导致up事件不会触发呢,我都...
来源: Laya_社区 发布时间: 20180419
...width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag) function showDragRegion() { //拖动限制区域 var dragWidthLimit = 350; var dragHeightLimit = 200; dragRegion = new Rectangle(Laya.stage.width - dragWidthLimit >> 1, Laya.stage.height...
来源: Laya_社区 发布时间: 20180627
...00"; text.fontSize=30; Laya.stage.addChild(text); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,changeAction); } var tActionID; function changeAction() { tActionID++; var aniCount; //获取动画动作数量 aniCount=skeleton.getAnimNum(); tActionID=tActionID%aniCount; //显示当前要播放的动画名...
来源: Laya2.0_文档 发布时间: 20210715