Click to See Complete Forum and Search --> : Rotating around the center
mesh2005
08-23-2007, 02:55 PM
I wanna rotate a movie clip around its center using this class http://www.actionscript.org/resources/articles/563/1/tweenEffects-Class/Page1.html The problem is it rotates around its top-left corner, although I've set the registration point to the center! The fading works correctly but the rotation does not. Please advice.
Webjedikungfu
08-23-2007, 05:11 PM
Have you dug into the movie clip to make all centered registrations? Center the parent, the children, and everything deep as you can go.
You may have tried, but if not it may help.
mesh2005
08-23-2007, 05:21 PM
Can I center it using Actionscript?
Webjedikungfu
08-23-2007, 06:18 PM
Yep, try playing with this and apply it to your needs.
movieclip_mc.setRegistration(10, 60);
mesh2005
08-23-2007, 06:34 PM
That didn't work too :( Please have a look at my code:
loader.loadClip(_global.image_url+this["image1"], image1);
DynamicRegistration.initialize(image1);
image1.setRegistration( 20, 20);
Webjedikungfu
08-23-2007, 08:57 PM
Well I think that whenever you "loadclip" or "createemptymovieclip" it has a top left registration point.
You may have to use actionscript to rotate it in reference to the registration point being top left. To sort of compensate.
Does the man's tutorial use "loadclip" as well? Or does he use movieclips he made and placed there on stage, named and then made actionscript for?