function onNodeOver(e:MouseEvent):void
{
var n:Node = e.currentTarget as Node;
var testNode:Node;
for (var i:int = 0; i < _nodes.length; i++)
{
testNode = _nodes*;
if (testNode.row < n.row - 1 || testNode.row > n.row + 1)
{
continue;
}
if (testNode.col < n.col - 1 || testNode.col > n.col + 1)
{
continue;
}
testNode.highlight( 0xFF0000 );
testNode.alpha =1
}
}
node is a small square
this gives me
(row1,column1)(row1,column2)(row1,column3)
(row2,column1)(row2,column2)(row2,column3)
(row3,column1) (row3,column2)(row3,column3)
i want it is
(row1,column2)
(row2,column1)(row2,column2)(row2,column3)
(row3,column2)
does anyone know how i could change this loop to ignore the diagonal nodes?