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

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

41. 图片添加点击事件 有的不生效 [ 87%]

... private init():void { //添加点击事件处理 this.v_btn_boy.on(Laya.Event.CLICK, this, this.onClickBtnBoy); this.v_btn_friend.on(Laya.Event.CLICK, this, this.onClickBtnFriend); this.v_btn_shop.on(Laya.Event.CLICK, this, this.onClickBtnShop); console.log("init main scene"); } //点击羁绊 priv...

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

42. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 87%]

...可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i...

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

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

...按钮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

44. Button 添加事件不执行? [ 87%]

...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

45. laya.events.Event [ 86%]

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

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

46. 抛click点击事件报错 [ 86%]

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

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

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

[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

48. laya.events.Event [ 86%]

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

来源: laya_api 发布时间: 20170929

49. 点击过快问题 [ 86%]

... 赞同来自: 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

50. laya.ui.UIEvent [ 85%]

...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