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

Reply via email to