Why only animation can listen event such as AnimatorEvent.SEQUENCE_DONE, but SmoothSkeletonAnimator?

Software: Away3D 4.x

liuyi, Member
Posted: 01 November 2011 08:44 AM   Total Posts: 65

I guess SmoothSkeletonAnimator should can listen this event, but after test, it can not listen them.

_animationControler.addEventListener(AnimatorEvent.SEQUENCE_DONEonAnimationDone);
   
_animationControler.addEventListener(AnimatorEvent.STOPonEnimEnd

so have to add event listener to every SkeletonAnimationSequence.
like this:

man.animIdle animList[0];
    
anim _modelManager.getAnimation(man.animIdle) ;
     
if (
anim != null{
 man
.animationControler.addSequence(anim as SkeletonAnimationSequence);
 
man.animationControler.play(man.animIdle);

My question if we have Hundreds of animations, we have to add hundreds event listener?

Could administrator give us a explain?
Thanks very much!

 

   

liuyi, Member
Posted: 04 November 2011 01:06 AM   Total Posts: 65   [ # 1 ]

Why no feedback? I think administrator can reply it just need 1 minutes?

   

StefC, Newbie
Posted: 22 November 2011 03:59 PM   Total Posts: 3   [ # 2 ]

Hi liuyi

Did you already find a solution? I have the same issue with the SkeletonAnimator. The event handling doesn’t seems to work.

kind regards

   

liuyi, Member
Posted: 22 November 2011 04:15 PM   Total Posts: 65   [ # 3 ]

Have no solution, but add event listner to every animationquene
make sure set animation’s loop to false,

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X