# Here is a example.. Calculate grid circle!

**URL:** <https://forum.kirupa.com/t/here-is-a-example-calculate-grid-circle/212876>\
**Category:** flash\
**Created:** [January 15, 2007, 9:40am UTC](https://forum.kirupa.com/t/here-is-a-example-calculate-grid-circle/212876 "2007-01-15T09:40:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manga](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manga](https://forum.kirupa.com/u/manga)\
**Post date:** [January 15, 2007, 9:40am UTC](https://forum.kirupa.com/t/here-is-a-example-calculate-grid-circle/212876/1 "2007-01-15T09:40:15Z")

</div>

> hey all,

problem:

i have a grid from 11 x 11 movieclips = 121 movieclips, the first one at \_x=0, \_y=0 is number 1! etc

now i want to start from the center of the grid movieclips that is number 61 and want to calculate from that 61 a circle movement till i reach the last outside movieclip number 11?

assuming i start from rigth direction:  
so i start with number 61,62,73,72,71,61,49,51,51 = a mini grid of 9x9 then i must start from 63,64 till i have a grid of 5x5 including the mini grid…

where can i find a formula calculation!? or help

i hope this makes sense? :))

wel nobody seems to have qlue on what i want…so i made a quick example:

only this time i make a grid start from 1x1 to 25x25 and trace the positions in a array… 🙂

but i done this on a hittest methode and i want a mathemetical formule to do this…

so take a look and see the blue pieces turn red on hittest and adding them in the array

🙂
