大约有 2,612 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1996) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(82) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(33)
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/events/MouseManager" MouseManager Class MouseManager MouseManager 是鼠标、触摸交互管理器。 鼠标事件流包括捕获阶段、目标阶段、冒泡阶段。 捕获阶段:此阶段引擎会从stage开始递归...
来源: Laya3.0_api 发布时间: 20231102
... Stat.show(); this.setup(); } setup() { this.createSprite(); 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...
来源: Laya2.0_示例 发布时间: 20241123
...ya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createSprite(); 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 = 30...
来源: Laya2.0_示例 发布时间: 20241123
...Sprite(); this.drawTrack(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; const w = 50; const h = 30; this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否...
来源: Laya2.0_示例 发布时间: 20241123
求教Event.KEY_DOWN和Event.MOUSE_DOWN调用window.open相关问题 点击的调用函数: private function OnDown(e:Event):void { Browser.window.open("http://baidu.com"); } Laya.stage.on(Event.KEY_DOWN, this, OnDown);//正常 Laya.stage.on(Event.MOUSE_DOWN, this, OnDown);//被拦截 La...
来源: Laya_社区 发布时间: 20181227
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/events/EventDispatcher" EventDispatcher Class EventDispatcher EventDispatcher 类是可调度事件的所有类的基类。 Hierarchy EventDispatcher Resource Node Transform3D SoundChannel Sound HttpRequest Loader AnimatorSta...
来源: Laya3.0_api 发布时间: 20231115
...ar Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas <!--laya-stage--> const canvas = document.getElementById('laya-stage'); Browser.container =...
来源: Laya_社区 发布时间: 20180205
...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var Tween = Laya.Tween; var WebGL = Laya.WebGL; //swipe滚动范围 var TrackLength = 200; //触发swipe的拖动距离 var TOGGLE_DIST = TrackLength / 2; var buttonPosition, beg...
来源: Laya_示例 发布时间: 20241123
...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var sp; var preRadian = 0; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage...
来源: Laya_示例 发布时间: 20241123
鼠标滚轮滚动事件 Laya.Event.MOUSE_DOWN // 左键按下 Laya.Event.MOUSE_UP // 左键抬起 Laya.Event.CLICK // 左键点击 Laya.Event.RIGHT_MOUSE_DOWN // 右键按下 Laya.Event.RIGHT_MOUSE_UP // 右键抬起 Laya.Event.RIGHT_CLICK // 右键单击 Laya.Event.MOUSE_MOVE // 鼠标移动 Laya...
来源: Laya_社区 发布时间: 20180411