public getSpineAni(url:string,completeCaller:any,completeFun:Function):void
{
this.m_spineCopmleteFun = completeFun;
this.m_completeCaller = completeCaller;
this.m_curLoadingUrl = url;
if(this.isLoaded(url) == false)
{
this.mFactory.loadAni(url);
}
else
{
this.buildAmature();
}
}
private onError():void
{
console.log("load spine error");
}
private parseComplete():void
{
this.m_loadedUrlArr.push(this.m_curLoadingUrl);
this.buildAmature();
}
private buildAmature():void
{
if(this.m_spineCopmleteFun != null)
{
var sk:Skeleton = this.mFactory.buildArmature(0);
return this.m_spineCopmleteFun.apply(this.m_completeCaller,[sk]);
}
}