大约有 26 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...on.as中处理下 /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMous...
来源: Laya_社区 发布时间: 20170926
...is.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state = Button.stateMap[e.type]); }上面逻辑当cli...
来源: Laya_社区 发布时间: 20191112
...链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event 类型 监听动作 class Event { /** 一个空的 Event 对象。用于事件派发中转使用。*/ ...
来源: Laya_社区 发布时间: 20170601
...有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMouse(e:Event):void { if (toggle === false &...
来源: Laya_社区 发布时间: 20160802
为对象创建Laya.Event.MOUSE_UP 和 Laya.Event.CLICK 事件的问题,, 为同一个对象创建Laya.Event.MOUSE_UP 和 Laya.Event.CLICK 事件, 点击对象,松开的时候,先响应MOUSE_UP事件,然后才响应的CLICK事件, 我如何在响应了MOUSE_UP事件以后,不让CLIC...
来源: Laya_社区 发布时间: 20180111
...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
import Event = laya.events.Event; 报错 import Event = laya.events.Event; 报错 file: 'file:///e%3A/Web/GameA/client/src/GameMain.ts' severity: '错误' message: 'Import declaration conflicts with local declaration of 'Event'' at: '5,1' source: 'ts' 项目中没有其他地方写这个import, 但...
来源: Laya_社区 发布时间: 20180522
... 大致代码如下:package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.ui.Box; import laya.ui.CheckBox; import laya.ui.Clip; import laya.utils.Handler; import ui.test.ListPageUI; public class LayaUISample { private var listP:ListPageUI;//UI面板...
来源: Laya_社区 发布时间: 20170313
...生flash下,如果要给List组件的每一条列表都侦听一个MouseEvent.CLICK事件,最简单的方法就是在for循环下对按钮名称进行遍历,以此来添加鼠标事件并根据按钮名称来进行区分。 那么Morn下有更简单的实现方式吗?(*^__^*) 嘻嘻……...
来源: Laya_社区 发布时间: 20151224
... list.mouseHandler=new Handler(this,onMouse); private function onMouse(e:Event,index:Number):void { // TODO Auto Generated method stub if(e.type==Event.CLICK) { trace("click"); } } 2016-12-02 3 2 分享 微博 QZONE 微信 sunkehappy 赞同来自: @cuixueying 感谢提供方案,不过我还是想...
来源: Laya_社区 发布时间: 20161202