Hi All,
I’m needing to do a simple task, alpha out each particle over time.
All being the same is fine. I’ve tried…
animationSet.addAnimation(new ParticleColorNode(ParticlePropertiesMode.LOCAL_STATIC));
private function initParticleParam(prop:ParticleProperties):void
{
//prop.startTime = prop.index * 0.005;
prop.startTime = 0;
prop.duration = 2;
prop.delay = 0;
//calculate the original position of every particle.
prop[ParticlePositionNode.POSITION_VECTOR3D] = new Vector3D(Math.random() * 500, 100, 0);
prop[ParticleVelocityNode.VELOCITY_VECTOR3D] = new Vector3D( Math.random() * 275, Math.random() * 275, Math.random() * 275 );
prop[ParticleColorNode.COLOR_END_COLORTRANSFORM] = new ColorTransform( 0, 0, 1, 0 );
}
But I get the error :
Error: there is no ColorStartColorTransform in param!