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

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

31. websocket出错 [ 71%]

...                 output=socket.output;         socket.on(Laya.Event.OPEN,this,onSocketOpen);         socket.on(Laya.Event.CLOSE,this,onSocketClose);         socket.on(Laya.Event.MESSAGE,this,onMessageRev);         socket.on(Laya.Event.ERROR,this,onConnectError); 在 socket....

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

32. 单机游戏如何监听网络是否连接 [ 70%]

...了不进行消息通信,当网断的时候是不是会触发 socket.on(Event.CLOSE, this, onSocketClose);在onSocketClose函数里处理执行逻辑对吧? 问题二:因为对H5不是很了解,想问问有没有像APP一样,直接关闭的语句,比如NativeApplication.nativeApplication...

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

33. App websocket out of memory [ 69%]

... testWebSocket(){ let client = new PinusWSClient(); client.on(PinusWSClientEvent.EVENT_IO_ERROR, (event) => { }); client.on(PinusWSClientEvent.EVENT_CLOSE, (event) => { //触发条件,手机端把网全关了 this.testWebSocket();//这种方式会导致在短时间内App的websocket out of m...

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

34. laya.ui.DialogManager [ 69%]

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

来源: laya_api 发布时间: 20170929

35. laya.ui.DialogManager [ 68%]

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

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

36. Laya.EventDispatcher off 删除侦听器 [ 68%]

Laya.EventDispatcher off 删除侦听器       var eventDis = new Laya.EventDispatcher()     eventDis.on('TEST_EVENT_DIS', this, someEventHandler, null)     eventDis.off('TEST_EVENT_DIS', this, another_eventHandler, false) off 怎样才能 从 EventDispatcher 对象中删除侦听器? ...

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

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

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

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

38. dialog.removeSelf is not a function [ 68%]

...laneGameInfoDialogUI;。。。(关闭按钮)this.ui.ibtn_close.on(Laya.Event.CLICK,this,this.ui.close);。。。(点击之后)Uncaught TypeError: dialog.removeSelf is not a function....求助大神谢谢啦~~~ 2017-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

39. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 67%]

用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 package tcp {     import laya.events.Event;     import laya.net.Socket;     import laya.utils.Byte;               public class CConnector extends Socket     {         protected ...

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

40. laya.ui.Dialog_API3.0 [ 66%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex...

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