liaocheng/away3d-particles-system — Issue #3: change settings of actions after creation
Author: matse4
Created: 2011-11-30 16:52:23+00:00
State: open

As I see it,, it is possible to change some settings of actions on the Fly.

for example:

```as
public function ScaleByLifeGlobal(startScale:Number,endScale:Number)
{
priority = 3;
_startScale = startScale;
_endScale = endScale;
_delta = _endScale - _startScale;
}
```

startScale and _delta are only used @ setRenderState() and there it only sets it to an const.

```as
override public function setRenderState(stage3DProxy : Stage3DProxy, pass : MaterialPassBase, renderable : IRenderable) : void
{
var context : Context3D = stage3DProxy._context3D;
context.setProgramConstantsFromVector(Context3DProgramType.VERTEX, scaleByLifeConst.index, Vector.([_startScale,_delta,0,0]));
}
```

shouldn't it be possible to change them? Or is there an reason why you don't allow that?

cheers Matse

PS: wuhuu Syntax highlighting ;)