Packagecom.yogurt3d.core.animation.controllers
Classpublic class SkinController
InheritanceSkinController Inheritance flash.events.EventDispatcher
Implements ITickedObject, IController

Default controllor for SkeletalAnimatedMesh files This controller serves as an animation player where you can upload animations belonging to the same bone structure as the mesh.



Public Properties
 PropertyDefined By
  currentAnimation : String
[read-only]
SkinController
  lastPlayedFrame : uint
[read-only]
SkinController
  mesh : SkeletalAnimatedMesh
[read-only]
SkinController
Public Methods
 MethodDefined By
  
SkinController
  
addAnimation(_id:String, _data:SkeletalAnimationData):void
SkinController
  
addFrameEventListener(type:String, listener:Function, frame:uint):void
SkinController
  
dispose():void
SkinController
  
gotoAndPlay(frame:uint):void
SkinController
  
hasAnimation(_id:String):Boolean
SkinController
  
pause():void
SkinController
  
play():void
SkinController
  
playAnimation(_id:String, _startFrame:uint = 0, _loopCount:uint = 0, blendMode:uint = 0, blendDuration:Number = 0):void
SkinController
  
removeFrameEventListener(type:String, listener:Function, frame:uint):void
SkinController
  
stop():void
SkinController
  
SkinController
Events
 Event Summary Defined By
  SkinController
  SkinController
Public Constants
 ConstantDefined By
  BLEND_ANIMATED : uint = 2
[static]
SkinController
  BLEND_SWITCH : uint = 0
[static]
SkinController
  BLEND_THEN_ANIMATE : uint = 1
[static]
SkinController
  STATE_PAUSED : uint = 1
[static]
SkinController
  STATE_PLAYING : uint = 0
[static]
SkinController
  STATE_STARTING : uint = 3
[static]
SkinController
  STATE_STOPPED : uint = 2
[static]
SkinController
Property Detail
currentAnimationproperty
currentAnimation:String  [read-only]


Implementation
    public function get currentAnimation():String
lastPlayedFrameproperty 
lastPlayedFrame:uint  [read-only]


Implementation
    public function get lastPlayedFrame():uint
m_animationsproperty 
YOGURT3D_INTERNAL var m_animations:Dictionary

m_blendDurationproperty 
YOGURT3D_INTERNAL var m_blendDuration:Number

m_blendingAnimationproperty 
YOGURT3D_INTERNAL var m_blendingAnimation:String

m_blendModeproperty 
YOGURT3D_INTERNAL var m_blendMode:uint

m_currentAnimationproperty 
YOGURT3D_INTERNAL var m_currentAnimation:String

m_currentStateproperty 
YOGURT3D_INTERNAL var m_currentState:uint = 2

m_frameEventListenersproperty 
YOGURT3D_INTERNAL var m_frameEventListeners:Dictionary

m_lastFrameproperty 
YOGURT3D_INTERNAL var m_lastFrame:uint

m_lastPlayedFrameproperty 
YOGURT3D_INTERNAL var m_lastPlayedFrame:uint

m_loopCountproperty 
YOGURT3D_INTERNAL var m_loopCount:int = 0

m_meshproperty 
YOGURT3D_INTERNAL var m_mesh:SkeletalAnimatedMesh

m_startFrameproperty 
YOGURT3D_INTERNAL var m_startFrame:uint = 0

m_startFrameOldproperty 
YOGURT3D_INTERNAL var m_startFrameOld:uint = 0

m_startTimeproperty 
YOGURT3D_INTERNAL var m_startTime:uint = 0

m_startTimeOldproperty 
YOGURT3D_INTERNAL var m_startTimeOld:uint = 0

meshproperty 
mesh:SkeletalAnimatedMesh  [read-only]


Implementation
    public function get mesh():SkeletalAnimatedMesh
Constructor Detail
SkinController()Constructor
public function SkinController(_mesh:SkeletalAnimatedMesh)



Parameters
_mesh:SkeletalAnimatedMesh
Method Detail
addAnimation()method
public function addAnimation(_id:String, _data:SkeletalAnimationData):void

Parameters

_id:String
 
_data:SkeletalAnimationData

addFrameEventListener()method 
public function addFrameEventListener(type:String, listener:Function, frame:uint):void

Parameters

type:String
 
listener:Function
 
frame:uint

dispose()method 
public function dispose():void

gotoAndPlay()method 
public function gotoAndPlay(frame:uint):void

Parameters

frame:uint

hasAnimation()method 
public function hasAnimation(_id:String):Boolean

Parameters

_id:String

Returns
Boolean
pause()method 
public function pause():void

play()method 
public function play():void

playAnimation()method 
public function playAnimation(_id:String, _startFrame:uint = 0, _loopCount:uint = 0, blendMode:uint = 0, blendDuration:Number = 0):void

Parameters

_id:String
 
_startFrame:uint (default = 0)
 
_loopCount:uint (default = 0)
 
blendMode:uint (default = 0)
 
blendDuration:Number (default = 0)

removeFrameEventListener()method 
public function removeFrameEventListener(type:String, listener:Function, frame:uint):void

Parameters

type:String
 
listener:Function
 
frame:uint

stop()method 
public function stop():void

updateWithTimeInfo()method 
public function updateWithTimeInfo(_timeInfo:TimeInfo):void

Parameters

_timeInfo:TimeInfo

Event Detail
endOfAnimation Event
Event Object Type: com.yogurt3d.core.events.AnimationEvent

endOfLoop Event  
Event Object Type: com.yogurt3d.core.events.AnimationEvent

Constant Detail
BLEND_ANIMATEDConstant
public static const BLEND_ANIMATED:uint = 2

BLEND_SWITCHConstant 
public static const BLEND_SWITCH:uint = 0

BLEND_THEN_ANIMATEConstant 
public static const BLEND_THEN_ANIMATE:uint = 1

STATE_PAUSEDConstant 
public static const STATE_PAUSED:uint = 1

STATE_PLAYINGConstant 
public static const STATE_PLAYING:uint = 0

STATE_STARTINGConstant 
public static const STATE_STARTING:uint = 3

STATE_STOPPEDConstant 
public static const STATE_STOPPED:uint = 2