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

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

141. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 74%]

... yyqx1122 • 2018-03-28 10:33 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/effec...

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

142. websocket连接, ws 时没问题,改成 wss 没反应 [ 74%]

...ectByUrl("wss://192.168.1.250:5000/websocket/");     this.socket.on(Laya.Event.OPEN, this, this.openHandler);     this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler);     this.socket.on(Laya.Event.CLOSE, this, this.closeHandler);     this.socket.on(Laya.Event.ERROR, this, this.erro...

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

143. MovieClip的target和currentTarget属性为undefined? [ 74%]

...){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这样的,但是COMPLE...

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

144. 2.3创建的开放域项目跑不起来 [ 74%]

...3创建的开放域项目跑不起来 一行代码没写呢     errorevents.js:163 throw er; // Unhandled 'error' even TypeScript error: libs/layaair.d.ts(22664,20): Error TS2304: Cannot find name 'WordText'. 附件 : --> fbOpen.rar 2019-11-14 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

145. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 74%]

...Right.bottom+100; }  //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO GamePage2 console.log("left onclick"); Laya.stage.addChild(new GameView); });  //分享快乐 this.StartRight.on(Laya.Event.CLICK,null,function(){ //超链接 onLink(href); });  //天猫Log...

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

146. websocket连接出错 [ 74%]

...03:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.Event.OPEN, this, openHandler); //建立连接 this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); //接收到数据触发函数 this.socket.on(Laya.Event.CLOSE, this, closeHandler); //关闭事件 this.socket.on(Laya.E...

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

147. 微信小游戏加载资源问题 [ 74%]

...completeHandler], false); this.completeHandler = null; } this.stop(); this.event(Laya.Event.COMPLETE); return; } if (this.loops > 0) { this.loops--; } this.startTime = 0; this.play(); } play() { this.isStopped = false; Laya.SoundManager.addChannel(this); this._audio.play(); } set startTime(time) ...

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

148. laya.resource.PrefabImpl_API3.0 [ 74%]

...ce _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new PrefabImpl(api: IHierarchyParserAPI, data: any, version: number): PrefabImpl Overrides Prefab.constructor D...

来源: Laya3.0_api 发布时间: 20231115

149. Native1.0.1 无法连接wss [ 74%]

...a.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERROR, this, this.onConnectFail); this.socket.on(Laya.Event.MESSAGE, this, this.onReceive); this.so...

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

150. laya.net.LoaderManager_API3.0 [ 74%]

...类,请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加...

来源: Laya3.0_api 发布时间: 20231102