Game of Life

[size=4][font=Comic Sans MS][color=#680aac]I’m getting ready to start a Game of Life project in Flash, but first before I do, does anyone know how to take a grid, and check if one square is touching others, and how many?

i.e.


O.O
.O.
OO.

I know that the center is touching 4 other cells, but how do I get AS to realize that?

Hoping for help, cause I’m lazy.[/color]
[/font][/size]