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

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

191. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 57%]

...tion Connect(url:String):void { socket=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:IHandl...

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

192. 按钮点击的位置发生偏移 [ 56%]

...父级div定位 可以通过 var target=document.getElementById('div-id'); this._point.setTo((e.pageX || e.clientX)-target.offsetLeft,( e.pageY || e.clientY)-target.offsetTop); 2021-05-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 CC...

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

193. dialog 里的数据已经获取到了,也赋值了但是页面没跟新,addChild好像无效果 [ 54%]

... • 2018-12-21 12:10 然后你的addchild可以添加在dialog页面,既this.addchild(),不一定要在stage上。因为dialog是最上层页面场景,可能会把你添加在stage上的遮住。 X. • 2018-12-21 14:37 @内涵tv何吓吓:2.0的,我换了一种方法写就可以i了

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

194. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 52%]

...ring ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个...

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

195. Native(android)下创建二维码并显示在页面上 [ 51%]

...l:string, width:number, height:number):string {         return this._bridge.call("createQrCode", url, width, height);     }     // 以下android代码 // JSBridge.javapublic static String createQrCode(final String content, final double width, final double height) { Bitmap bitmap...

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

196. 微信小游戏提审后,提示说代码侵权 [ 49%]

...phpContent.replace(regExp0, "private " + name2s); var regExp = new RegExp("this."+name + "\\(", 'gi'); phpContent = phpContent.replace(regExp, "this." + name2s); regExp = new RegExp("this."+name + "\\," , 'gi'); phpContent = phpContent.replace(regExp, "this." + name2 + ","); regExp = new RegExp("thi...

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

197. 微信环境下面Laya.Browser.window.protobuf.load不能读取本地的proto文件 [ 47%]

...nction这样定义:function (){if(arguments.length>0&&"return this"===arguments[arguments.length-1])return function(){return e}} Chrome和预览里面的Function这样定义:function Function() { [native code] } 2018-03-07 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 用这...

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

198. lib/arm/liblayaair.so 总是崩溃 [ 45%]

...8224f64ddb 08-14 10:57:48.979 22228-22354/? I/LayaBox: release JSWebSocket this=adf7dbf8 deletgate=adfb4648 08-14 10:57:49.131 3084-3555/? D/AudioFlinger: mixer(0xaad8e188) throttle end: throttle time(29)          --------- beginning of crash 08-14 10:57:49.222 22858-22354/? A/google-breakpad: ...

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

199. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 45%]

...et 1 01-06 17:34:41.531 335 335 I C02c11/APPSPAWN: [appspawn_service.c:226]this is unlock status 01-06 17:34:41.531 335 335 I C02c11/APPSPAWN: [appspawn_server.c:218]AppSpawnProcessMsg id 19 0x0 -- 01-06 17:34:41.545 902 902 E C02515/DISP: [SetMetadata:85] <private> is not supported 01-06 17:3...

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

200. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 41%]

...试Unity导出Anim后用Laya运行时_handleSpriteOwnersByClip函数中抛this._clips[clipIndex]._nodes为null的访问异常,Unity版本为2017.2.0f3,Laya引擎版本为1.7.13,请大神帮忙看看是怎么回事 TestAnim.rar 2018-01-03 3 4 分享 微博 QZONE 微信 cuixueying 赞同来自: ...

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