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

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

61. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 82%]

...动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第一个...

来源: Laya2.0_文档 发布时间: 20210715

62. MovieClip的target和currentTarget属性为undefined? [ 81%]

... 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代码是这样的,但是COMPLETE事...

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

63. Native下http请求,Error事件中的error对象错误码全都是404 [ 81%]

...该会有这个问题才是的 比如说这个代码: this.hr.once(Event.COMPLETE, this, onHrCompleteHandler); this.hr.once(Event.ERROR , this ,onHrErrorHandler); this.hr.send($url, $data, $method, $responseType, $headers); private function onHrCompleteHandler():void { if(this.completeHandler) { t...

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

64. LayaFlash针对资源的加载是同步还是异步? [ 81%]

...er:Loader = new Loader(); loader.contentLoaderInfo.addEventListener (Event.COMPLETE, layaAssetLoadComplete); loader.load(new URLRequest(path)); } private function layaAssetLoadComplete(event:Event):void { var loaderInfo:LoaderInfo = event.target as LoaderInfo; loaderInfo.removeEventListener(Event.CO...

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

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

...der:URLLoader = new URLLoader();         loader.addEventListener(Event.COMPLETE, onConfigLoaded);         loader.load( new URLRequest(".dev") );     }       private function onConfigLoaded(evt:Event):void     {         var params:URLVariables = new URLVariables();         para...

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

66. 关于缓动函数from的一些问题记录 [ 80%]

...n.from(letterText,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,...

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

67. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 80%]

...*结束加载,处理是否缓存及派发完成事件 <code>Event.COMPLETE</code> 。     *@param content 加载后的数据     */     __proto.endLoad=function(content){         content && (this._data=content);         if (this._cache)Loader.cacheRe...

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

68. 网络通信 · LayaAir3文档 · LAYABOX [ 80%]

... "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度。 * @eventType Event.ERROR * */ /*[Event(name = "error", type = "laya.events.Event")]*/ 2.1.4 在代码中怎么使用 Laya...

来源: Laya3.0_文档 发布时间: 20250104

69. 骨骼动画播放完了,回调隐藏,回调在哪里 [ 80%]

...t(); mFactory.loadAni("NiuXingTianXia/spine/start2.sk"); mFactory.on(Event.COMPLETE, this, function () { mArmature = mFactory.buildArmature(); mArmature.pos(650, 330); mArmature.play(0, false); this.addChild(mArmature); }); 2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

70. web端ios这边加载压缩的图片加载报错 [ 80%]

... 微博 QZONE 微信 Laya_Aaron 赞同来自: laya.core.js  18667行   complete方法 按照如下修改 complete(data) { this._data = data; if (this._customParse) { this.event(Event.LOADED, data instanceof Array ? [data] : data); } else { this._http.offAllCaller(this); Loader._loaders.push(this)...

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