Packagelaya.ani
Classpublic class AnimationTemplet
InheritanceAnimationTemplet Inheritance laya.resource.Resource
Subclasses Templet

AnimationTemplet 类用于动画模板资源。



Public Properties
 PropertyDefined By
  interpolation : Array
[static]
AnimationTemplet
Public Methods
 MethodDefined By
  
AnimationTemplet
  
getAniDuration(aniIndex:int):int
AnimationTemplet
  
getAnimation(aniIndex:int):*
AnimationTemplet
  
AnimationTemplet
  
getAnimationDataWithCache(key:*, cacheDatas:*, aniIndex:int, frameIndex:int):Float32Array
AnimationTemplet
  
getNodeCount(aniIndex:int):int
AnimationTemplet
  
getNodeIndexWithName(aniIndex:int, name:String):int
AnimationTemplet
  
getNodes(aniIndex:int):*
AnimationTemplet
  
getNodesCurrentFrameIndex(aniIndex:int, playCurTime:Number):Uint32Array
AnimationTemplet
  
getOriginalData(aniIndex:int, originalData:Float32Array, nodesFrameIndices:Array, frameIndex:int, playCurTime:Number):void
AnimationTemplet
  
getOriginalDataUnfixedRate(aniIndex:int, originalData:Float32Array, playCurTime:Number):void
AnimationTemplet
  
getPublicExtData():ArrayBuffer
AnimationTemplet
  
getTotalkeyframesLength(aniIndex:int):int
AnimationTemplet
  
[static] 加载动画模板。
AnimationTemplet
  
onAsynLoaded(url:String, data:*, params:Array):void
[override] private
AnimationTemplet
  
setAnimationDataWithCache(key:*, cacheDatas:Array, aniIndex:int, frameIndex:Number, data:*):void
AnimationTemplet
Protected Methods
 MethodDefined By
  
[override] 销毁资源,override it,同时修改memorySize属性。
AnimationTemplet
Property Detail
interpolationproperty
public static var interpolation:Array

Constructor Detail
AnimationTemplet()Constructor
public function AnimationTemplet()



Method Detail
detoryResource()method
override protected function detoryResource():void

销毁资源,override it,同时修改memorySize属性。

getAniDuration()method 
public function getAniDuration(aniIndex:int):int

Parameters

aniIndex:int

Returns
int
getAnimation()method 
public function getAnimation(aniIndex:int):*

Parameters

aniIndex:int

Returns
*
getAnimationCount()method 
public function getAnimationCount():int

Returns
int
getAnimationDataWithCache()method 
public function getAnimationDataWithCache(key:*, cacheDatas:*, aniIndex:int, frameIndex:int):Float32Array

Parameters

key:*
 
cacheDatas:*
 
aniIndex:int
 
frameIndex:int

Returns
Float32Array
getNodeCount()method 
public function getNodeCount(aniIndex:int):int

Parameters

aniIndex:int

Returns
int
getNodeIndexWithName()method 
public function getNodeIndexWithName(aniIndex:int, name:String):int

Parameters

aniIndex:int
 
name:String

Returns
int
getNodes()method 
public function getNodes(aniIndex:int):*

Parameters

aniIndex:int

Returns
*
getNodesCurrentFrameIndex()method 
public function getNodesCurrentFrameIndex(aniIndex:int, playCurTime:Number):Uint32Array

Parameters

aniIndex:int
 
playCurTime:Number

Returns
Uint32Array
getOriginalData()method 
public function getOriginalData(aniIndex:int, originalData:Float32Array, nodesFrameIndices:Array, frameIndex:int, playCurTime:Number):void

Parameters

aniIndex:int
 
originalData:Float32Array
 
nodesFrameIndices:Array
 
frameIndex:int
 
playCurTime:Number

getOriginalDataUnfixedRate()method 
public function getOriginalDataUnfixedRate(aniIndex:int, originalData:Float32Array, playCurTime:Number):void

Parameters

aniIndex:int
 
originalData:Float32Array
 
playCurTime:Number

getPublicExtData()method 
public function getPublicExtData():ArrayBuffer

Returns
ArrayBuffer
getTotalkeyframesLength()method 
public function getTotalkeyframesLength(aniIndex:int):int

Parameters

aniIndex:int

Returns
int
load()method 
public static function load(url:String):AnimationTemplet

加载动画模板。

Parameters

url:String — 动画模板地址。

Returns
AnimationTemplet
onAsynLoaded()method 
override public function onAsynLoaded(url:String, data:*, params:Array):void

private

Parameters

url:String
 
data:*
 
params:Array

setAnimationDataWithCache()method 
public function setAnimationDataWithCache(key:*, cacheDatas:Array, aniIndex:int, frameIndex:Number, data:*):void

Parameters

key:*
 
cacheDatas:Array
 
aniIndex:int
 
frameIndex:Number
 
data:*