大约有 2,538 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1915) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(46)
...输入文字的多少,它会自动加长的效果。 但是当我监听Event.INPUT,执行动态增加输入框宽度时,出现了文字重叠,很难看, 我的代码很简单就是 let input: Laya.TextInput = new Laya.TextInput(); input.skin = "new/textinput.png"; input.sizeGrid = "50, ...
来源: Laya_社区 发布时间: 20170820
...载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件加载出错 pub...
来源: Laya_社区 发布时间: 20161011
... else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => { // 返回登陆页 Laya.Scene.open("Auth.scene"); }); // 遍历数组添加事件 this._arrInput.forEach((element, index) => { element.on(Laya.Event.FOCUS, this, this._onInputEvent, [element, ...
来源: Laya_社区 发布时间: 20200410
...例子我们本地查下package { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Stat; import laya.webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite();...
来源: Laya_社区 发布时间: 20160905
...eying 赞同来自: 为你的牌侦听事件即可 鼠标按下:Event.MOUSE_DOWN 鼠标移动:Event.MOUSE_MOVE 鼠标抬起:Event.MOUSE_UP 鼠标经过:Event.MOUSE_OVER 鼠标具体对应的逻辑,譬如鼠标按下的时候判断移入了哪张牌,鼠标抬...
来源: Laya_社区 发布时间: 20161221
...类似飞机大战一边滑动一边施放技能 写法如下: stage.on(Event.MOUSE_DOWN, this, onMouseDown); private function onMouseDown(e:Event = null):void { var touches:Array = e.touches; if (touches) { moveX = touches[0].stageX stage.on(Event.MOUSE_MOVE, this, onMouseMove) } } private functi...
来源: Laya_社区 发布时间: 20210203
... 怎么监听啊 ANDORID 切后台 怎么监听啊? Laya.stage.on(Laya.Event.BLUR, this, this._on_blur); Laya.stage.on(Laya.Event.FOCUS, this, this._on_focus);这个没有用啊。 2018-05-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...
来源: Laya_社区 发布时间: 20180522
...a.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERROR, this, this.onConnectFail); this.socket.on(Laya.Event.MESSAGE, this, this.onReceive); this.so...
来源: Laya_社区 发布时间: 20180910
...lor="#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.scrollText); Laya.sta...
来源: Laya_社区 发布时间: 20170810
...class HTMLDivElement 构造中监听一下 this.on(Laya.Event.MOUSE_OVER, this, this._onMouseOver); this.on(Laya.Event.MOUSE_OUT, this, this._onMouseOut); this.on(Laya.Event.MOUSE_MOVE, this, this._onMouseMove); 增加如下3个方法 ...
来源: Laya_社区 发布时间: 20200724