Multidimensional Arrays

I’m just beginning to learn AS3 and I’ve been reading Colin Moock’s Essential ActionScript 3.0. (I’ve been doing some exercises on how to randomly choose elements from arrays). All of the book’s example codes that I’ve tried so far (in FLASH CS5) seem to work pretty well. But I’m having a bit of problem with the example code below which is found in chapter 11 (Arrays):

var row1:Array = [6, 2.99]; // Quantity 6, Price 2.99
var row2:Array = [4, 9.99]; // Quantity 4, Price 9.99
var row3:Array = [1, 59.99]; // Quantity 1, Price 59.99
var spreadsheet:Array = [row1, row2, row3];
var total:Number;
for (var i:int = 0; i < spreadsheet.length; i++) {
total += spreadsheet*[0] * spreadsheet*[1];
}
trace(total); // Displays: 117.89

When I test the movie the output panel displays NaN instead of 117.89.

I’d really appreciate it if any one of you can help me with this one.

Thanks.

globo23