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

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

111. 微信头像请求方式 [ 77%]

...建请求 let httpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObjectURL(blob); ...

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

112. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 77%]

...; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this._skBufferUrl.slice(0,this._skBufferUrl.lastIndexOf("/"))+"/")...

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

113. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 77%]

... new Test (Test.js:3)     at onAssetLoaded (LayaUISample.js:64)     at EventHandler.__proto.runWith (laya.core.js:681)     at ResInfo.__proto.event (laya.core.js:460)     at LoaderManager.__proto._endLoad (laya.core.js:11993)     at Loader.onLoaded (laya.core.js:11972)     at EventHandle...

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

114. socket无法连接服务器 [ 77%]

...d;         private initSocket(): void {             this.on(Laya.Event.OPEN, this, this.onConected);             this.on(Laya.Event.ERROR, this, this.onError);         }         public conectToServer(): void { //“连接”按钮的回调             if (this.connected...

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

115. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 77%]

...c initTemplet(){ this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); // this.mFactory.on(Laya.Event.STOPPED,this,this.parseComplete); this.mFactory.on(Laya.Event.ERROR, this, this.onError); this.mFactory.loadAni("res/games/Game_ddz/animation/ddz_figur...

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

116. 版本管理swf找同名的Json文件发现找不到 [ 77%]

...;             if (!data){                 this.event(/*laya.events.Event.ERROR*/"error","file not find");                 return;             }             // console.log("this['_atlasPath']---->",this['_atlasPath']);      ...

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

117. LayaFlash如何使用chrome调试问题? [ 76%]

...n.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDE...

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

118. 如何能监听到TouchStart和TouchEnd事件 [ 76%]

...链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event  类型 监听动作  class Event {         /** 一个空的 Event 对象。用于事件派发中转使用。*/ ...

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

119. replaceSlotSkinName对于spine换肤不成功 [ 76%]

...0,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseC...

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

120. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 76%]

...= Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine(url, hand...

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