From: Ray C. <rc...@gm...> - 2006-08-31 16:27:27
|
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 ? > > > > > On 8/31/06, thomas mery <tho...@gm...> wrote: > > > > actually I think I was lookng for setFrameRotation and it works :) > > > > > > > > > > > > On 8/31/06, Scott Hyndman <sc...@af... > wrote: > > > This used to work. I'll have a look. > > > > > > Scott > > > > > > On 30/08/06, thomas mery < tho...@gm...> wrote: > > > > Hello all, > > > > > > > > i'm having trouble rotating views ... is there anything I should be > aware of > > > > ? > > > > > > > > using rotateByAngle(90) results in my view disappearing alltogether > > > > > > > > trying to use mcBoundsHolder._rotation does the same > > > > > > > > hope i'l just mising something :) > > > > > > > > tia > > > > > > > > thomas > > > > > > > > -- > > > > > > > > > ------------------------------------------------------------------------- > > > > 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=lnk&kid=120709&bid=263057&dat=121642 > > > > > > > > _______________________________________________ > > > > actionstep-core mailing list > > > > act...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > 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=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > actionstep-core mailing list > > > act...@li... > > > > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > > > > > > > > > > > -- > > > ---------------------------------------------------------- > > http://www.myspace.com/thomasmery > > http://www.thomas-mery.net > > > ---------------------------------------------------------- > > > > -- > ---------------------------------------------------------- > http://www.myspace.com/thomasmery > http://www.thomas-mery.net > ---------------------------------------------------------- > ------------------------------------------------------------------------- > 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=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |