Point.polar() will give you an X/Y value based on the degree (in rads) and the distance from the center of the circle.
On Wed, Apr 22, 2009 at 10:36 AM, whispers <whispers...@hotmail.com> wrote: > Seems like a carousel project to me? > > Have you checked out www.gotoandlearn.com > > There are many parameters > > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Rodrigo > Augusto Guerra > Sent: Wednesday, April 22, 2009 12:11 PM > To: flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] loading images in a circle format.. > > hi all... > > I got a request to load some images in a circle format and once you click > one image, it goes to the front. > > the final layout will be like this: > www.alumni.org.br/tmp/rodrigo/modelo.gif > > my doubt is, how to divide the circle in X equally pieces.... > > the logic I'm thinking: > > divide the circle degree (360º) in X (X = number of images), then I'll get > the postions to load the images > > then load each image in the X position, and as the reg. point is left/top > by > default I would have to horizontal center the loaded image in the X/Y > position. > > when the user clocks on a image that is not the front one it will swap with > the image clicked, bringing the new image to the front. > > but this works only if I use degrees like: > > if I have 360º / 6 images, I'll get each image at 60º. > > how discover each 60º to load the image at that point and convert it to a > x/y coordinate?? > > but this is my logic, of course if you guys have a better suggestion to do > the same thing, I 'would like to know. > > > thanks, > rodrigo. > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders