• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 441 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)

41. 关于3d场景上Button点击事件顺序问题 [ 88%]

...按钮button。 2,在场景中加入了鼠标点击事件  Laya.stage.on(Event.MOUSE_DOWN,this,sceneClick);   private function sceneClick():void {     trace("scene clicked"); }   3,在button上添加按钮功能 button.on(Event.CLICK,this,onBtn); private function onBtn(e:Event):void {     e....

来源: Laya_社区 发布时间: 20180917

42. Button 添加事件不执行? [ 88%]

...1, 760, Laya.WebGL); let Stage = Laya.stage; let Button = Laya.Button; let Event = Laya.Event; let Handler = Laya.Handler; let rightBtn = new Button(); rightBtn.labelFont = "Microsoft YaHei"; rightBtn.label = 'right'; rightBtn.labelSize = 60; rightBtn.labelColors = '#fff'; rightBtn.labelStrokeColor ...

来源: Laya_社区 发布时间: 20180309

43. 抛click点击事件报错 [ 88%]

...能抛自定义事件  比如let xx:Laya.Sprite = new Laya.Sprite(); xx.event(Laya.Event.Click);  然后会报错    因为要实现新手引导5秒自动点击功能 所以会抛出一个事件  这个貌似是基本功能 求解答 2018-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微...

来源: Laya_社区 发布时间: 20180525

44. laya.events.Event [ 88%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames EventProperties | Methods | Constants Packagelaya.eventsClasspublic dynamic class EventInheritanceEvent Object Event 是事件类型的集合。一般当发生事件时,Event 对象将作为参数传递给事件侦听器...

来源: Laya2.0_api 发布时间: 20190513

45. [0]Event.Mouse_Drag和Event.Mouse_Drag_End在不注册鼠标事件的情况下无法 [ 87%]

[0]Event.Mouse_Drag和Event.Mouse_Drag_End在不注册鼠标事件的情况下无法 const MOUSE_EVENTS = new Set([         Event.MOUSE_DOWN, Event.MOUSE_UP, Event.MOUSE_MOVE, Event.CLICK, Event.DOUBLE_CLICK,         Event.RIGHT_CLICK, Event.RIGHT_MOUSE_DOWN, Event.RIGHT_MOUSE_UP,       ...

来源: Laya_社区 发布时间: 20231106

46. laya.events.Event [ 87%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames EventProperties | Methods | Constants Packagelaya.eventsClasspublic dynamic class EventInheritanceEvent ObjectSubclasses UIEvent Event 是事件类型的集合。一般当发生事件时,Event 对象将作为参数传递...

来源: laya_api 发布时间: 20170929

47. 点击过快问题 [ 87%]

... 赞同来自: zjw917329684 参考下下面的写法吧: Laya.stage.once(Event.CLICK,this,onClick); } private function onClick():void { trace("aaa"); Laya.stage.off(Event.CLICK,this,onClick); Laya.timer.once(500,this,onLoop); } private function onLoop():void { Laya.stage.once(Event.CLICK,this,onCl...

来源: Laya_社区 发布时间: 20170619

48. laya.ui.UIEvent [ 87%]

...DocumentationAll Packages | All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show Inhe...

来源: Laya2.0_api 发布时间: 20190513

49. laya.ui.UIEvent [ 87%]

...DocumentationAll Packages | All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show Inhe...

来源: laya_api 发布时间: 20170929

50. dialog的popup方法不会关闭其他弹窗 [ 86%]

...alDialog: NormalDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") });  }  showDialog(context: string) { // if (this.normalD...

来源: Laya_社区 发布时间: 20181216