mustaffa Posted October 24, 2010 Share Posted October 24, 2010 Hello, How to spin an mc? thanks mustafa. Link to comment Share on other sites More sharing options...
GreenSock Posted October 25, 2010 Share Posted October 25, 2010 Just tween its rotation. TweenLite.to(mc, 1, {rotation:360}); Link to comment Share on other sites More sharing options...
mustaffa Posted October 25, 2010 Author Share Posted October 25, 2010 Thanks but I was imagining something different. Your code rotating the mc from upper left corner but is it possible to make it from center? I have read the documentation but could not find anything about it. Sorry if I am asking for something already documented or too simple. mustafa. Link to comment Share on other sites More sharing options...
mustaffa Posted October 25, 2010 Author Share Posted October 25, 2010 I have found a solution to my question. I have edited the symbol as placing its registration point (the + sign) to its center. But now I wonder how to do that precisely with AS3 or Twinmax offers a solution for that? Link to comment Share on other sites More sharing options...
GreenSock Posted October 26, 2010 Share Posted October 26, 2010 Of course. That's what the transformAroundCenter plugin is for. Or if you want to use a custom registration point that's anywhere (not just the center), use the transformAroundPoint plugin. There are interactive examples in the Plugin Explorer for both plugins. (they're only for "Really Green" Club GreenSock members and above). Link to comment Share on other sites More sharing options...
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