I’ve been using this GreenSock Tweening Platform (v11) for quite some time for small nice effects. It’s pretty simply to use but I’m still a newbie with many of it’s features. In the last update of this platform one of the changes was the rewrite of TimelineMax and TimelineLite functions. Until this day I have not used any of them.
To put it simple you can add multiple effects to a timeline.
I’ve used this feature for animating a glowing star ( still, I have to do some further experiments). Here’s an example:
package { import flash.display.Sprite; import flash.filters.GlowFilter; import com.greensock.TimelineMax; import com.greensock.TweenMax; public class Star extends Sprite { private var _glowing:TimelineMax = new TimelineMax(); private var _tween:TweenMax = null; public function Star():void { this.graphics.beginFill(0xFFF600) this.graphics.drawCircle(0, 0, 5); this.graphics.endFill(); this.filters=[new GlowFilter(0xFFF600,.7,7,7,3,2,false,false)] var _rnd = (Math.random() * (1 - .5)) + .5; var step1:TweenMax = TweenMax.to (this, _rnd, {glowFilter:{color:(0xFFF600, alpha:.6, blurX:11, blurY:11}}); var step2:TweenMax = TweenMax.to(this, _rnd,{glowFilter:{color:(0xFFF600, alpha:.7, blurX:7, blurY:7}}); _glowing.append(step1); _glowing.append(step2); _glowing.pause(); _rnd = (Math.random() * (3.0 - 1.0)) + 1.0; _tween= TweenMax.to(_glowing, _glowing.totalDuration, {currentTime: _glowing.totalDuration, repeat: -1, repeatDelay:_rnd}); } } }