大约有 856 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(759) Laya2.0_文档(27) Laya_示例(19) Laya3.0_文档(16) Laya2.0_示例(14) Laya2.0_api(9) laya_api(9) Laya3.0_api(3)
...ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(...
来源: Laya_社区 发布时间: 20170810
...单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); })...
来源: Laya_社区 发布时间: 20230823
...txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,scrollText);Laya.stage.on(Laya.Event.MOUSE_...
来源: Laya_社区 发布时间: 20180125
...ayaAir3]Laya.Slider 的结束拖拽的事件监听 怎么写, Laya.Event.MOUSE_UP)不好使,Laya.Event.MOUSE_UP只有在滑动块上原地点击抬起就会执行,当我拖动滑动块松开鼠标后,就不会触发 2025-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20250709
...处理下 /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMouse(e:Even...
来源: Laya_社区 发布时间: 20170926
...):void { spe = new Sprite(); spe.mouseEnabled = true; spe.x = 100; spe.y = 100; spe.width = 512; spe.height = 512; spe.size(512, 512); ...
来源: Laya_社区 发布时间: 20170407
...g = message[static] 定义 message 事件对象的 type 属性值。Event MOUSE_DOWN : String = mousedown[static] 定义 mousedown 事件对象的 type 属性值。Event MOUSE_MOVE : String = mousemove[static] 定义 mousemove 事件对象的 type 属性值。Event MOUSE_OUT : String = mouseout[s...
来源: Laya2.0_api 发布时间: 20190513
鼠标事件 mouseout 异常触发问题 layaAir2.1.0,鼠标mouse_up事件会自动触发mouse_out事件 导致没办法正确判断鼠标cancel事件 mouse_out事件不是作为鼠标cancel的标志吗? 或者谁有鼠标cancel判断更好的方法? 2019-06-28 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20190628
...请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: Mouse.cursor="url('mouse.png')"; 你可以自己该图片地址,让鼠标变成图片里的样子 2017-12-06 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 15952...
来源: Laya_社区 发布时间: 20171206
...听到鼠标出屏的事件? Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")}); Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")}); mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠...
来源: Laya_社区 发布时间: 20200407