PDA

View Full Version : Table variable



Rinaldi
May 10th, 2007, 09:19 PM
Hi I was wondering how I do to cache a table of information in ActionScript 3.0. It would be more like an Array which have more than one column.

Thank you very much.

simplistik
May 11th, 2007, 08:16 AM
seriously... start posting your threads in the proper area please.

senocular
May 11th, 2007, 10:45 AM
You would use a 2D array, or an array of arrays (Flash has no specific 2D array struct, but having one array which contains others is the same thing)

var array2D:Array = new Array(10); // array 10 elements long
array2D[0] = new Array(); // first row/column
array2D[0][0] = "value";
// etc.

Rinaldi
May 12th, 2007, 06:31 PM
Thank you senocular for the explanation, and sorry simplistik but where should I post, it isn't about ActionScript 3.0?