Scale & rotate around an arbitrary centre | Web 2.1<http://web.2point1.com/2008/04/13/scale-rotate-around-an-arbitrary-centre/> first result on google.
2009/1/13 Anthony Pace <[email protected]> > Oh yeah this definitely works. I was having trouble because I needed to > delete ASO files(thought things had changed in the fp10 upgrade and I was > going nuts until I figured it out); yet, I am still looking for a better > way. > > I am looking into the matrix transformer class right now. > > > Ian Thomas wrote: > >> That shouldn't be the case. >> >> You will have to offset the original mc's x and y by half the width >> and height of the original; but the rotation of the wrapping mc should >> always take place around that mc's origin. >> >> e.g. >> >> var wrapper:Sprite=new Sprite(); >> wrapper.addChild(original); >> original.x=-original.width/2; >> original.y=-original.height/2; >> >> addChild(wrapper); >> >> wrapper.rotation=45; >> >> ... or whatever. >> >> If you're really getting erroneous results from that sort of setup, >> I'd love to see the source code. >> >> Ian >> >> On Sun, Jan 11, 2009 at 2:00 AM, Anthony Pace <[email protected]> >> wrote: >> >> >>> I have actually tried that yet, it seems that when I move the mc in the >>> wrapper, the origin of the wrapper changes to be that of mc upper left >>> most >>> point. >>> >>> Leandro Ferreira wrote: >>> >>> >>>> The easiest way is to wrap it arount another object, move its position >>>> and >>>> rotate the wraper. >>>> >>>> Leandro Ferreira >>>> >>>> >>>> On Sat, Jan 10, 2009 at 10:11 PM, Anthony Pace >>>> <[email protected]>wrote: >>>> >>>> >>>> >>>> >>>>> How do you change the origin of rotation dynamically? can it be done? >>>>> or >>>>> will it always be 0,0 >>>>> >>>>> I was hoping that with the new features of as3 that this I would be >>>>> able >>>>> to >>>>> indicate where I wanted the origin; yet, I am starting to think that I >>>>> was >>>>> hoping for too much. >>>>> >>>>> >>>>> _______________________________________________ >>>>> Flashcoders mailing list >>>>> [email protected] >>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>>> >>>>> >>>>> >>>>> >>>> _______________________________________________ >>>> Flashcoders mailing list >>>> [email protected] >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> Flashcoders mailing list >>> [email protected] >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >>> >>> >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> >> > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- The Random Lines My online portfolio www.therandomlines.com _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

