大约有 441 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(263) Laya2.0_api(59) laya_api(55) Laya2.0_文档(21) Laya3.0_文档(16) Laya2.0_示例(15) Laya_示例(9) Laya3.0_api(3)
...按钮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
...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
...能抛自定义事件 比如let xx:Laya.Sprite = new Laya.Sprite(); xx.event(Laya.Event.Click); 然后会报错 因为要实现新手引导5秒自动点击功能 所以会抛出一个事件 这个貌似是基本功能 求解答 2018-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180525
...I DocumentationAll Packages | All Classes | Index | Frames No Frames EventProperties | Methods | Constants Packagelaya.eventsClasspublic dynamic class EventInheritanceEvent Object Event 是事件类型的集合。一般当发生事件时,Event 对象将作为参数传递给事件侦听器...
来源: Laya2.0_api 发布时间: 20190513
[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
...I DocumentationAll Packages | All Classes | Index | Frames No Frames EventProperties | Methods | Constants Packagelaya.eventsClasspublic dynamic class EventInheritanceEvent ObjectSubclasses UIEvent Event 是事件类型的集合。一般当发生事件时,Event 对象将作为参数传递...
来源: laya_api 发布时间: 20170929
... 赞同来自: 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
...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
...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
...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