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

大约有 92 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)

11. 引擎socket类_onMessage bug [ 88%]

...    * @private      * 接收到数据处理方法。      * @param msg 数据。      */     protected _onMessage(msg: any): void {         if (!msg || !msg.data) return;         var data: any = msg.data;         if (this.disableInput && data) {             thi...

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

12. Byte writeArrayBuffer的Bug [ 86%]

... 赞同来自: 这样写就发出去了         public function send(msg:Message):void{             trace("发送消息:",msg);             output = this.socket.output;             output.writeUint16(getCode(msg));             var bytes:WritingBuffer = new...

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

13. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 86%]

...ectByUrl("ws://127.0.0.1:9000");//建立连接; } } public function send(msg:String):void { if(this.socket.connected){ var byte:Byte = new Byte(); byte.writeUTFString(msg); this.socket.send(byte.buffer); } } private function openHandler(event:Object = null):void { //正确建立连接; trace("op...

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

14. 关于绑定点击事件无效的问题! [ 85%]

关于绑定点击事件无效的问题! 如图 msg.btnn.on()绑定的点击事件并没有生效, btnn是UI编辑里面的var的一个box的名字 ,,求解答!!!!可以正常打印出(msg.btnn) 附件 : --> 2017-03-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

15. console.log详细信息 [ 84%]

...: 895 关注: 2 人 becktim • 2018-03-21 20:35 百度到的console.trace(msg)是可以输出msg的,但LayaAir ts上用只有堆栈,没有msg。同时,console.dir也显示Unimplemented console API。用的是1.7.16beta版本

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

16. QQ玩一玩打包问题 [ 83%]

...;span style="color:#FF0000;">Error: 禁止使用关键字:sc.push_new_msg.local</span> <br> <span style="color:#FF0000;">Error: exit error</span> <br> </p> 搜到https://ask.layabox.com/question/14813 ,但是没有解决 请问一下 还有人遇到过吗 ...

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

17. FlashBuilder配置出错? [ 83%]

...e: basic_string 0.00% Laya:Laya AS2JS Compiler[Ver 0.10.20161125] start... MSG,1,0.00,,0,Project command:“/Users/kaiser/Sites/layaProject/trunk/GameProject/.actionScriptProperties;iflash=false” Project configuration:“/Users/kaiser/Sites/layaProject/trunk/GameProject/.actionScriptProperties. cw...

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

18. websocket请教下,服务器发送过来的数据怎么获取 [ 83%]

...确建立连接`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ///////////////////////////////////////////////////////////// 这里的msg,是监听事件的名称,请问下服务器发送过来的数据,我...

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

19. websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? [ 83%]

... 数据的发送与接收的具体方法是怎样的? package test; enum MSG_HEADER { LOGIN_GAME = 0x00000001; JOIN_GAME = 0x00000002; EXIT_GAME = 0x00000003; } message LoginGame { required string account = 1; // 账号 required string passwd = 2; // 密码 }第一次使用protobuf与服务端通...

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

20. layaair1.5.4测试版本ide下调试 报protobuf错误 [ 82%]

...错如下 但在fb下编译运行mei没有报错 运行正常   sg_proto msg_cs {ProtoBuf: Object} conf_game {ProtoBuf: Object} CarProtoModel {msg_proto: msg_cs, conf_proto: conf_game, _callBack: null, _proxy: Proxy, _data: null…} TypeError: require is not a function at Object.ProtoBuf.Util.Util....

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