Checking through 2d arrays with as3 is fast, so the most straightforward way to do this would be to check the entire array for chains.
Write a for loop that cycles through the entire array, and for each block, run a function that establishes temp_chain_length = 0, checks down, right, and diagonally down and right, then, if that returns true, temp_chain_length++, and repeat with the tile and direction that returned true. When you hit chain length of 5, game over.
-dialectric
|