PDA

View Full Version : 3D Array Values


SteveSloan
07-20-2005, 02:24 PM
Ok, im a bit new to arrays and im trying to make a 3d array in flash, and searching forums is no use, I just get results on creating 3d graphics. The problem is I dont know how to get individual values for each row.

I hope that makes sence, im loosing my mind thinking about this stuff. :confused:

var row1 = [6, 2.99];
var row2 = [4, 9.99];
var row3 = [1, 59.99];

var spreadsheet1 = [row1, row2, row3];
var spreadsheet2 = [row1, row2, row3];
var spreadsheet3 = [row1, row2, row3];

var test = [spreadsheet1, spreadsheet2, spreadsheet3];

trace(test[0][0][0]);
trace(test[1][0][0]);

deadbeat
07-20-2005, 04:51 PM
That code works for me...

What exactly is your problem?

K.

SteveSloan
07-20-2005, 05:49 PM
dont worry about it, i got some help and im using a string and using the split function.
My concern was that it ran but all the data was the same and i wanted it to be differn't.
Dont be supprised if im making no sence, im somewhat new at this stuff.