大约有 444 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(295) Laya2.0_示例(37) Laya_示例(31) Laya2.0_文档(27) Laya2.0_api(18) laya_api(16) Laya3.0_文档(15) Laya3.0_api(5)
...ya.Point=new Laya.Point(); pos1:Laya.Point=new Laya.Point(); __mouseDown(e:Event){ this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event.MOUSE_MOVE, this, this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, thi...
来源: Laya_社区 发布时间: 20170831
...指旋转(多点触控)”有这样的代码: private onMouseDown(e: Event): void { var touches: Array<any> = e.touches; if (touches && touches.length == 2) { this.preRadian = Math.atan2( to...
来源: Laya_社区 发布时间: 20180301
... (index > 5) index = 5; this.setCurPage(index) } public 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 > -...
来源: Laya_社区 发布时间: 20181112
...过程,因此建立连接后,通常要注册以下事件监听器: Event.OPEN:连接成功建立后触发。 Event.MESSAGE:收到服务器发送的数据时触发。 Event.CLOSE:连接关闭时触发。 Event.ERROR:连接出错时触发。 示例代码: // 注册事件监听示例 th...
来源: Laya3.0_文档 发布时间: 20251010
... else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, ...
来源: Laya_社区 发布时间: 20200410
...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...
来源: Laya2.0_文档 发布时间: 20210714
... (index > 5) index = 5; this.setCurPage(index) } public 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 > -...
来源: Laya_社区 发布时间: 20180724
...button/button_window_public_space_enter.png"; this.btnEnter.on( Laya.Event.CLICK, this, this.btnClick ); this.width = 1553; this.height = 270; } public set publicSpaceData ( publicSpaceInfoData:any ) { this._publicSpaceData = publicSpaceInfoData; console.log...
来源: Laya_社区 发布时间: 20170923
...相关的链接 提交 2 个回复 158*****871 赞同来自: Laya.stage.on(Event.MOUSE_DOWN, this, this.onMouseDown); onMouseDown(e) { const Event = Laya.Event; // 手机上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2...
来源: Laya_社区 发布时间: 20190919
...有效果。 ```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