Not played with dof sprite. The Advanced_DofAtom example in the svn seems
confusing. Not sure why its added to a mesh.
Just doing
var i:int = snowflakeNum;
while (i--)
{
var snowflake:DepthOfFieldSprite = new DepthOfFieldSprite(snowflakeMaterial)
scene.addSprite(snowflake);
snowflake.x = randomMinMax(-600,600)
snowflake.z = randomMinMax(-600,600)
snowflake.y = randomMinMax(-1600,1600)
snowflakes.push(snowflake);
}
//then updating in the enterframe works.
for each (snowflake in snowflakes)
{
if (snowflake.y <= -1500)
{
snowflake.y = 1500;
}
snowflake.y -= 13
}
Apart from that bug you metion. if you have snowflake.y -= 13 before the
check they don't move :o