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

大约有 119 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

41. Laya的on(Laya.Event.Click)无法打开新窗口 [ 71%]

Laya的on(Laya.Event.Click)无法打开新窗口 一个控件使用on(Laya.Event.Click)监听时,无法在监听函数中使用window.open,会被拦截,有没有什么比较好的办法解决呢? 2017-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

42. laya.ui.DialogManager [ 71%]

...asses | Index | Frames No Frames DialogManagerProperties | Methods | Events Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意...

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

43. 怎么监听程序关闭事件啊?? [ 71%]

...现在想监听程序关闭事件(就是关闭laya工具),尝试用Event.BLUR和Event.FOCUS才发现是监听游览器的,然后我用了Event.CLOSE,Event.END也是不可以,请问下是调用哪个方法呢??? 附件 : --> 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...

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

44. 可以监听到程序关闭的事件吗? [ 70%]

...容相关的链接 提交 2 个回复 cuixueying 赞同来自:   请监听Event.BLUR和Event.FOCUS事件即可,当浏览器最小化以及浏览器关闭时,即可触发BLUR事件,当打开浏览器时即可触发FOCUS事件。 2016-12-12 0 1 分享 微博 QZONE 微信 vincent 赞同来自: ...

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

45. 如何能监听到TouchStart和TouchEnd事件 [ 70%]

...链接 提交 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

46. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 69%]

...MLHttpRequest`和`XMLHttpRequestUpload`都继承了同一个`XMLHttpRequestEventTarget`接口所以upload也具有上述事件。 ## 在laya中怎么使用 laya中用HttpRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我们...

来源: Laya2.0_文档 发布时间: 20210715

47. 网络通信 · LayaAir3.0文档 · LAYABOX [ 69%]

...,完成事件,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求...

来源: Laya3.0_文档 发布时间: 20230719

48. laya.net.Socket_API3.0 [ 69%]

... Socket 对象。 Socket 以异步方式传输和接收数据。 Hierarchy EventDispatcher Socket Index Constructors constructor Properties disableInput protocols BIG_ENDIAN LITTLE_ENDIAN Accessors connected endian input output Methods cleanSocket close connect connectByUrl event flush hasListener o...

来源: Laya3.0_api 发布时间: 20231115

49. Native1.0.1 无法连接wss [ 68%]

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

50. socket.sent [ 68%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); } private...

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