Jump to content
GreenSock

codehammer

Simple Animation

Recommended Posts

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

Link to comment
Share on other sites

Hi

 

TweenLite doesn't have repeat or yoyo properties. Just change your existing code to use TweenMax.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×