var domino:Array = []; for (var i:Number = 0; i < 7; i++) { for (var j:Number = i; j < 7; j++) { domino.push([ i, j]); } } trace(domino.length)