Hi,
I was trying out making a different type of simple rollover effect, and thought I’d do this by adding a GlowFilter to a Sprite, and then tweening parameters of the glow.
It works, but very inconsistently (maybe on the first rollover, or when you click). My MouseOver/Out events call these functions:
Is there something else I should be doing? (I’ve got a vague recollection of setting a _dirty property to a sprite to force it to be re-rendered, but I think this wasn’t OpenFL.)
You can also tween filters. You can reference the filter by its class, or by the value of its index in the filter array, whichever is easier Actuate.effects (MySprite, 1).filter (BlurFilter, { blurX: 10, blurY: 10 });
I don’t remember the code behind effect but I think it’s because when you change a variable in a filter, you have to reassign the said filter to the filter property of the display object, so I think that effect do that.
You could make your own Actuator. Just look at the FilterActuator and try to adapt it to Starling if you want. But like I said, FilterActuator exists only because of the needed reassignement. Is it needed in Starling? There must be other options like using simple tween or even update