This is what I'm trying to do. I have a menu on the side with a button that pulses based on the selected button. Below is the code I'm using:
prevTween = TweenMax.to(mc, 0.8, { glowFilter:{alpha:1, blurX:10, blurY:10, color:0xA0CDF5, strength:1, quality:3}, yoyo:true, repeat:-1 } );
When you change screens I look for that old tween, kill it and start a new tween.
if (prevTween) {
mc = prevTween.target as MovieClip;
prevTween.kill();
prevTween = null;
TweenMax.to(mc, 0.8, { glowFilter:{alpha:0, blurX:0, blurY:0, color:0xA0CDF5, strength:1}, colorMatrixFilter:{brightness:1} } );
}
This works for about 30 seconds to a minute of looping, then it starts degrading to a simple toggle. So instead of the glow tweening nicely from nothing to on. It goes from on, to off, same with the brightness. Of course this resets as soon as I change screens, but it eventually breaks again.
Any idea if this is a bug or if I'm doing something wrong?