ParticleAnimator & events?

Software: Away3D 4.x

Tarkin, Newbie
Posted: 18 August 2013 11:32 PM   Total Posts: 1

Hello,
  First, kudos to the Away3d team and Adobe, I have really enjoyed developing 3d applications with Away3d!

I have a question: how can I be notified when a particle animation ends?
I have tried attaching an event listener to the ‘main’ Sprite, the stage, and the ParticleAnimator. I have tried listening for AnimatorEvent.STOP and AnimationStateEvent.PLAYBACK_COMPLETE.

Can anyone shed some light on this? (using 4.1 Alpha off of github)
Thank you,
  Steve

   

Avatar
dottob, Jr. Member
Posted: 22 August 2013 02:02 AM   Total Posts: 49   [ # 1 ]

Maybe by control the duration?
...
private function initParticleParam(prop:ParticleProperties):void
  {
prop.startTime =0   prop.duration = 1
...
Or maybe control the state dynamic?

use:
...
animator.update(state)

   
   
‹‹ Tiling BitmapTexture

X

Away3D Forum

Member Login

Username

Password

Remember_me



X