Hey all,

I'm using the tutorial on building a carousel from gotoandlearn.com as the
basis of one that has a few more things it can do.

I'm having trouble with the placement of items on the circle at the
beginning.

The angle is derived with:

t.angle = i * ((Math.PI * 2) / numOfItems);

The x and y coords are derived with:

t._x = Math.cos(t.angle) * radiusX + centerX;
t._y = Math.sin(t.angle) * radiusY + centerY;

This starts the placement of the items on the circle starting at 3
o'clock(east), whereas I would like them to start at 6 o'clock(south).

How would I go about adding 90 degrees to the initial placement?

Cheers.

Adrian

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to