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

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

41. 怎么播放声音? [ 58%]

..._sound.on(Laya.Event.COMPLETE,this,this.loadcom_f); bg_sound.on(Laya.Event.PROGRESS,this,this.loadcom_f); bg_sound.on(Laya.Event.ERROR,this,this.loadcom_f); bg_sound.load("res/bg.mp3"); private loadcom_f(e:Laya.Event):void{ console.log("------------------=============") }可是这么写了一户,...

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

42. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 58%]

...StageScaleMode;     import flash.events.Event;     import flash.events.ProgressEvent;     import flash.events.TimerEvent;     import flash.external.ExternalInterface;     import flash.text.TextField;     import flash.text.TextFieldAutoSize;     import flash.text.TextFormat;     impor...

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

43. [LayaNative3]laya3List 里面的itemrender会被清掉 [ 57%]

...imator添加多个播放状态islooping属性会被覆盖 为什么load 的progress会被执行两次,complete在加载失败时也会执行 采用on绑定事件后,界面释放时,持有的回调对象句柄会被清除吗?谢谢! LayaAirIDE文件树最后一个文件会被状态栏遮挡...

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

44. 官方的示例贴上来,怎么没反映啊 [ 57%]

... completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(data) { console.log(data); } function errorHandler(data) { alert(2); } function completeHandler(...

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

45. 关于HttpRequest [ 56%]

...nUtils.urlEncode(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.c...

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

46. 仅在Android微信小游戏下图片错乱 [ 56%]

... 2 个回复 xxxxxxxxxx 赞同来自: load(url: any, complete?: Handler, progress?: Handler, type?: string, priority?: number, cache?: boolean, group?: string, ignoreCache?: boolean): LoaderManager;   这里的ignoreCache对图片资源不工作! 这是导致划屏的原因。 悬赏充了100块...

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

47. 如何能监听到TouchStart和TouchEnd事件 [ 55%]

...值。*/         static LOADED: string;         /** 定义 progress 事件对象的 type 属性值。*/         static PROGRESS: string;         /** 定义 input 事件对象的 type 属性值。*/         static INPUT: string;         /** 定义 render 事...

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

48. request failed status:0 text: IOS HttpRequest [ 55%]

...533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); var headers = []; headers.push("Content-Type"); headers.push("application/json"); h...

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

49. 如何在layaair 上使用get方法的xml ,获得节点属性? [ 55%]

...           hr = new HttpRequest();             hr.once(Event.PROGRESS, this, onHttpRequestProgress);             hr.once(Event.COMPLETE, this, onHttpRequestComplete);             hr.once(Event.ERROR, this, onHttpRequestError);             hr.send(NameJosn, nu...

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

50. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 55%]

...hr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.url, this.currentRequest.data, "post", "text", ["Access-Control-Allow-Origin","*", "Access-Control-Allow-Headers","X-Requested-With", "Ac...

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