codehammer Posted November 18, 2012 Posted November 18, 2012 I am trying to make a flash that has twinkling stars. I thought it would be a simple effect. All I want is the alpha to fade in and out on a randomly generated cycle. And have the AS inside the star so every time I place one it will fade in and out on its own. var cycle:Number = Math.random() * 4; TweenLite.To(mc, cycle, {alpha:0, repeat:-1, yoyo:true}); But I am missing something because it will appear and fade out and not repeat or yoyo. Thanks cH
Carl Posted November 18, 2012 Posted November 18, 2012 Hi TweenLite doesn't have repeat or yoyo properties. Just change your existing code to use TweenMax.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now