[Flashcoders] loading images in a circle format..

2009-04-22 Thread Rodrigo Augusto Guerra
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


RE: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Merrill, Jason
Go to www.gotoandlearn.com and find the tutorial, Creating 3D
Carousels.



Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] loading images in a circle format..

2009-04-22 Thread whispers
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


Re: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Matt Gitchell
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


Re: [Flashcoders] loading images in a circle format..

2009-04-22 Thread Rodrigo Augusto Guerra
hi, 

yes it's a carousel, but I avoided naming because I wasn't very sure if this is 
the name for this kind of thing.

anyway, thanks for the tips... will check the point.polar and gotoandlearn. 


thanks!

rodrigo


  - Original Message - 
  From: Matt Gitchell 
  To: Flash Coders List 
  Cc: Rodrigo Augusto Guerra 
  Sent: Wednesday, April 22, 2009 3:09 PM
  Subject: Re: [Flashcoders] loading images in a circle format..


  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