From: thomas m. <tho...@gm...> - 2006-09-01 09:13:29
|
sorry I wrote : like if you rotate a square by 90=B0 and want its rotation point to be its center you rotate it and then have to add half its width to its x position you then get the desired behaviour should have been : you have to add its whole width On 9/1/06, thomas mery <tho...@gm...> wrote: > > I was thinking it should be possible to set a center point and compute th= e > new x and y based on the rotation angle, new x, new y , old x, old y > > without having to resort to a container clip > > like if you rotate a square by 90=B0 and want its rotation point to be it= s > center you rotate it and then have to add half its width to its x positio= n > you then get the desired behaviour > > I thought there was a formula to have it work with any angle and any > rotation point > > I'll keep on looking for this but if someone knows what I mean and have > it handy ... :) > > maybe its basic stuff but trigonometry and I have to schedule a meeting > > > > > > On 9/1/06, Ray Chuan <rc...@gm...> wrote: > > > > What do you mean? Share! > > > > On 9/1/06, thomas mery <tho...@gm...> wrote: > > > 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 =3D x-xc; > > > > daddy_mc._y =3D y-yc; > > > > kid_mc._x =3D xc; > > > > kid_mc._y =3D 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 ? > > > > > > > > > > > > > > > > > > > > > -----------------------------------------------------------------------= -- > > > Using Tomcat but need to do more? Need to support web services, > > security? > > > Get stuff done quickly with pre-integrated technology to make your jo= b > > > easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > > > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > > -- > > Cheers, > > Ray Chuan > > > > > > -----------------------------------------------------------------------= -- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > > > > _______________________________________________ > > actionstep-core mailing list > > act...@li... > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > -- > > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > --=20 ---------------------------------------------------------- http://www.myspace.com/thomasmery http://www.thomas-mery.net ---------------------------------------------------------- |