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

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

131. VBOX动态增加的元素没有自动布局 [ 64%]

...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }         完整项目请见附件。 附件 : --> testvbox.rar 2017-07-25 添加评论 免费帖 --> 分享 微...

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

132. HTTP以POST发送Byte字节流,服务器无法解析 [ 63%]

HTTP以POST发送Byte字节流,服务器无法解析 JS代码: function starConnection() { console.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequ...

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

133. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 63%]

...的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayD...

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

134. 关于如何解析远程.xml文件的问题 [ 63%]

.../192.168.1.21:90/Game_Config.xml",Handler.create(this,onLoadered)); public function onLoadered(data:*):void { trace("data:" + data); }  来完成文件的加载,在文件加载完会返回xml的内容信息,这是你可以解析加载的xml内容 2016-11-20 0 0 分享 微博 QZONE 微信 wangxu...

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

135. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 63%]

... of bounds var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/...

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

136. 关于图片加载路径的问题 [ 63%]

...s/res/image/fireIcon.png",0,0,200,200,new Laya.Handler(this,onloadImage)); function onloadImage(){ console.log('图片加载结束'); Laya.stage.addChild(fireIcon); }   资源的结构为: |-.laya |-bin |-laya   |-assets     |-res       |-image         |-fireIcon.png |-libs |-src 2018-06-...

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

137. 场景切换造成的FPS下降的优化思路请教 [ 63%]

...当前类所有事件监听的移除,大致如下 /**销毁**/ private function dispose():void { this.removeEvent(); this.removeChildren(); this.removeSelf(); }visible(非可见区域的对象尽量从显示列表移除或者设置visible=false。),设置为visible=false的显示对象,将...

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

138. 解析JSON格式的数据 [ 63%]

...这么写吗?字符串我无法输出,不知道是不是load写错了 function initJson() { var fileURL="json/ENDLESS_TABLE.json"; var strJson=Laya.loader.load(fileURL,Handler.create(this,readJsonFinish),null,Loader.JSON); function readJsonFinish() { console.log(strJson); var contact =...

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

139. UI加载完成后无法获取控件的大小——超详细版问题 [ 62%]

...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); console.log("myref-onloaded", testUI.myref.getBounds()); console.log("mypan-onloaded", testUI.mypan.getBounds()); La...

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

140. clip清除一遍资源后再加载就无法显示了!有demo! [ 62%]

...源后再加载就无法显示了!有demo! private var clip:Clip; public function LayaSample() { Laya.init(1920,1080,WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.p...

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