From: thomas m. <tho...@gm...> - 2006-08-31 16:57:27
|
the good old method I thought about somethin more complex where the new center was computed but this is way better :) thanks On 8/31/06, Ray Chuan <rc...@gm...> wrote: > > Hi, > maybe you can attach it to another clip. > > Say you have a box w by h, which is originally at (x,y). You want the > centre of rotation to be at (xc,yc). So, attach it to a clip: > > daddy_mc.createEmptyMovieClip("kid_mc", daddy_mc.getNextHigestDepth()); > daddy_mc._x = x-xc; > daddy_mc._y = y-yc; > kid_mc._x = xc; > kid_mc._y = xc; > > Since the absolute coordinates of the attached clip takes into account > the coordinates of the parent clip, kid clip appears at the point (x, > y) but has rotation centre (xc, yc). > > To do this in ActionStep your movieclip heirarchy should look like this: > > mcBounds > |- holder > |- daddy_mc > |- kid_mc > > On 8/31/06, thomas mery <tho...@gm...> wrote: > > by the way is there a method (im not that good with maths ...) to shift > the > > rotation center ? I know there probably is out there but already built > in > > actionstep ? > > > > |