Jump to content
Search Community

increasement issue

davids701124 test
Moderator Tag

Recommended Posts

If you want the value to be relative instead of absolute, just cast it as a String. But if you want it to be able to remember the destination value and keep adding 10 to that so that it works even if the function is called multiple times before the tween that's in progress finishes, employ a variable like:

 

var destRotation:Number = 0;
function increaseRotation():void {
   destRotation += 10;
   TweenMax.to(mc, .5, {rotation:destRotation});
}

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.
×
×
  • Create New...