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

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

131. 网络和格式-POST [ 72%]

...; hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', 'post', 'text'); } showLogger() { c...

来源: Laya2.0_示例 发布时间: 20251130

132. laya.ani.swf.MovieClip [ 72%]

...l:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null):Sprite 加载并显示一个图片。功能等同于graphics.loadImage方法。支持异步加载。 注意:多次调用loadImage绘制不同的图片,会同时显示。 Sprite localToGlobal(poin...

来源: laya_api 发布时间: 20170929

133. 网络和格式-GET [ 71%]

...; hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null, 'get', 'text'); } showLogger() {...

来源: Laya2.0_示例 发布时间: 20251130

134. 求HTTP相关的文档或者例子谢谢了 [ 71%]

...          this.publicloader.addEventListener(/*iflash.events.Event.COMPLETE*/"complete",BIND$(this,this.checkListComp));             this.url=new URLRequest("wished.php");             this.url.method=/*iflash.net.URLRequestMethod.POST*/"POST";             var values...

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

135. 为何用MovieClip加载Swf会造成H5卡死,且不报错? [ 71%]

...错? var mc:MovieClip = new MovieClip(); Laya.stage.addChild(mc); mc.on("complete", this, function (evt:Event){ trace("swf complete"); }); mc.load("../../res/swf/mapFlash.swf"); 为何加了这段代码,整个H5就如“死机”,点浏览器的刷新都不管用? 也不抱错? 2017-01-18 ...

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

136. ui编辑器中使用龙骨动画问题 [ 71%]

... 794 关注: 2 人 liwenhua • 2018-03-22 14:48 this.guge.once(Laya.Event.COMPLETE,this,()=>{ console.log('解析完成'); }); console.log(this.guge.templet); 这样是监听不到Complete事件的,打印出来this.guge.templet结果为null liwenhua • 2018-03-22 14:52 使用U编辑器I做的...

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

137. 一个关于laya.display.scene不成熟的小建议 [ 71%]

...的小建议 建议把scene里的静态方法: static load(url: string, complete?: Handler, progress?: Handler): void; static open(url: string, closeOther?: boolean, param?: any, complete?: Handler, progress?: Handler): void; static close(url: string, name?: string): boolean; static closeAll(): vo...

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

138. 再问:tween对象的回收利用 [ 71%]

... 游戏里经常有用到缓动的场合,基本执行一次,然后在completeHandle做处理,都是通过Laya.Tween.to来执行,没有对接口返回的tween对象做缓存也没有做回收,按之前官方说法,是要手动回收,感觉这样很不方便,不能做成像Handle.creat...

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

139. web打包 [ 71%]

...ya.core.js:1000)     at Loader.event (laya.core.js:1039)     at Loader.complete (laya.core.js:18862)     at Loader.onLoaded (laya.core.js:18818)     at EventHandler.runWith (laya.core.js:998)     at HttpRequest.event (laya.core.js:1039)     at HttpRequest.complete (laya.core.js:18456)  ...

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

140. Cannot read property 'offCanplay' of null [ 71%]

...,在laya.wxmini.js onCanPlay() { this.loaded = true; this.event(Laya.Event.COMPLETE); this._sound.offCanplay(null); } 估计是因为网络比较满的情况,在文件下载完毕之后,sound对象已经被销毁了,所以自己加了一个判断。 onCanPlay() { this.loaded = true; this.event...

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