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

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

81. 事件函数作用域问题 [ 76%]

...Dig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个函数,是不是就是使用lamb表达式就要使用null,不是匿名就是使用this 2016-12-02 添加评论 免费帖 --> 分享 微博 Q...

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

82. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 75%]

当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 引擎版本:2.0.0 问题描述:当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy...

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

83. websocket出错 [ 75%]

...             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.on(Lay...

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

84. 开放数据域半透明图片显示错误 [ 75%]

...主域显示的样式 是不可以用半透明图片吗?   附件 : --> open_test.zip open_test_context.zip 2019-10-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 加个背景底图...

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

85. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 75%]

...websocket的连接是异步的,所以一切和后端的交互都要等待open事件成功之后,前后端建立了连接通道才可以正常的收发消息。因此实例化socket之后四个事件是我们必须监听的: ``` Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接...

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

86. 1.7.12 版本 dialog 出问题拉!! [ 74%]

...7*****121 • 2017-11-02 09:55 问题已解决,新版本更新了dialog _open加了一个参数,我重写_open 方法,没传入第三个参数,太坑了.... Monica • 2017-11-02 10:49 @157*****121:好的,有问题再联系!

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

87. httprequest ios手机上请求提示Request failed status:0 [ 74%]

...微博 QZONE 微信 Laya_Aaron 赞同来自: 1、If the state is UNSENT or OPENED, return 0.(如果状态是UNSENT或者OPENED,返回0) 2、If the error flag is set, return 0.(如果错误标签被设置,返回0)   前面提到,服务器在完成请求之后会在 XMLHttpRequest 的 o...

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

88. 怎么在一个界面上通过按钮打开另一个Dialog呢? [ 74%]

...个Dialog呢? 打开界面是GameConfig.startScene && Laya.Scene.open(GameConfig.startScene);但是在打开之后怎么索引到这个界面中的按钮 和 怎么通过这个按钮打开新的dialog 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...

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

89. 用 texturepacker .json+.png File [ 73%]

...: E:\svnwork\layawork\bin\h5\index.html ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map 用微信开发工具运行, 报错,ENOENT: no such file or directory, open 'release\wxgame\GameMain.js.map'' 第一次用,Failed to load resource: net::ERR_FILE_NOT_F...

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

90. socket通讯返回数据 [ 73%]

...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); // this.socke...

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