大约有 210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
Laya_社区(166) Laya3.0_文档(10) Laya2.0_api(9) laya_api(7) Laya3.0_api(7) Laya2.0_文档(7) Laya2.0_示例(2) Laya_示例(2)
...t.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.connect...
来源: Laya_社区 发布时间: 20170209
...(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.socket.send("hello world");//###################################################### } private openHandler(event: any = null):...
来源: Laya_社区 发布时间: 20180211
...t=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.connectByUrl(url); } public function Add(handler:IHandler):void { if(list.indexOf(handler) &...
来源: Laya_社区 发布时间: 20170724
...端是websocket服务器时socket为什么我客户端调用Laya.Socket的close方法的时候会在往服务器发送一次上次的消息呢? Laya_Aaron • 2018-06-20 10:26 你可以看一下代码,close不会出这种情况的,游戏退了你什么都做不了。
来源: Laya_社区 发布时间: 20180619
...判断当前点击的是哪个按钮,抛出具体的事件并监听。 myClose.on(Event.CLICK,this,onClicks); myYes.on(Event.CLICK,this,onClicks); myNo.on(Event.CLICK,this,onClicks) } private function onClicks(e:Event):void { // TODO Auto Generated method stub if(e.target.name=="close") { open页...
来源: Laya_社区 发布时间: 20160908
..."laya.events.Event")] /** * 连接被关闭后调度。 * @eventType Event.CLOSE * */ [Event(name = "close", type = "laya.events.Event")] /** * 出现异常后调度。 * @eventType Event.ERROR * */ [Event(name = "error", type = "laya.events.Event")] 2017-09-22 0 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20170922
...et.output; socket.on(Event.OPEN, this, this.onSocketOpen); socket.on(Event.CLOSE, this, this.onSocketClose); socket.on(Event.MESSAGE, this, this.onMessageReveived); socket.on(Event.ERROR, this, this.onConnectError); } onSocketOpen() { console.log("Connected"); // 发送字符串 socket.send("demonst...
来源: Laya2.0_示例 发布时间: 20251130
...ew ui.common.PlaneGameInfoDialogUI;。。。(关闭按钮)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
...设置zOrder属性,可以更改弹出的层次 通过设置popupEffect和closeEffect可以设置弹出效果和关闭效果,如果不想有任何弹出关闭效果,可以设置前述属性为空 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefine...
来源: Laya2.0_api 发布时间: 20190513
...ab中的图片资源还在。 log: open --------------------------------close----------------------------------- loader http://localhost:18090/_cache_ ... 65.ls (2) [5, PrefabImpl] loader http://localhost:18090/resources/Box.lh (2) [5, PrefabImpl] loader http://localhost:18090/resources/chest_bg....
来源: Laya_社区 发布时间: 20240109