大约有 301 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
Laya_社区(179) Laya3.0_api(78) Laya2.0_文档(16) Laya2.0_示例(10) Laya_示例(9) Laya3.0_文档(7) laya_api(1) Laya2.0_api(1)
...动画模板 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
... 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
...该会有这个问题才是的 比如说这个代码: 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
...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
...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
...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
...*结束加载,处理是否缓存及派发完成事件 <code>Event.COMPLETE</code> 。 *@param content 加载后的数据 */ __proto.endLoad=function(content){ content && (this._data=content); if (this._cache)Loader.cacheRe...
来源: Laya_社区 发布时间: 20180101
... "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
...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
... 微博 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