大约有 63 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0035 秒)
...; Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let w = 200, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50")...
来源: Laya2.0_示例 发布时间: 20250222
...内容相关的链接 提交 1 个回复 leisure 赞同来自: Laya.Event.MOUSE_OUT 完全解决这个问题啊 2018-02-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laya2902 相关问题 请问有没有方法能够获取“鼠标是...
来源: Laya_社区 发布时间: 20180214
...ite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 300, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.pos(Laya.stage.width / 2, Laya.stage.hei...
来源: Laya_示例 发布时间: 20250222
...; Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let w = 300, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50")...
来源: Laya2.0_示例 发布时间: 20250222
...MOUSE_MOVE); Laya.stage.off(Laya.Event.MOUSE_UP) Laya.stage.off(Laya.Event.MOUSE_OUT); // 鼠标按下事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this.snakeSelf, this.snakeSelf.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this.snakeSelf, this.snakeSelf.onMouseUp); Laya.stage.on(Laya.Event.MOUS...
来源: Laya_社区 发布时间: 20180514
...ya.Event.MOUSE_OVER, this, over); sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out); } } function over(e) { e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) { //正常大家可能会这么写,但是运行之后是无效的,因为e.target可能变...
来源: Laya_社区 发布时间: 20160715
...seDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没有了 -- currentCamera 2017-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20170218
...ouseHandler); rect.on(Event.MOUSE_OVER, this, mouseHandler); rect.on(Event.MOUSE_OUT, this, mouseHandler); rect.on(Event.DOUBLE_CLICK, this, mouseHandler); rect.on(Event.MOUSE_WHEEL, this, mouseHandler); } /** * 鼠标响应事件处理 */ function mouseHandler(e) { switch (e.type) { case Event.MOUS...
来源: Laya_社区 发布时间: 20180205
...CHANGE LINK LOADED MESSAGE MOUSE_DOWN MOUSE_DRAG MOUSE_DRAG_END MOUSE_MOVE MOUSE_OUT MOUSE_OVER MOUSE_UP MOUSE_WHEEL OPEN PAUSED PLAYED PROGRESS READY REMOVED RENDER RESIZE RIGHT_CLICK RIGHT_MOUSE_DOWN RIGHT_MOUSE_UP ROLL_OUT ROLL_OVER SELECT START STOPPED TRANSFORM_CHANGED TRIGGER_ENTER TRIGGER_EXI...
来源: Laya3.0_api 发布时间: 20231115
...OVE // 鼠标移动 Laya.Event.MOUSE_OVER // 鼠标经过目标 Laya.Event.MOUSE_OUT // 鼠标移出目标 Laya.Event.DOUBLE_CLICK // 鼠标左键双击 Laya.Event.MOUSE_WHEEL // 鼠标滚轮滚动 请教下,滚轮滚动怎么判断是上滚动还是下滚动? 2018-04-11 添加评论 免费...
来源: Laya_社区 发布时间: 20180411