3 Replies Latest reply on Sep 2, 2012 7:12 PM by kglad

    Accessing values in multi-dimensional arrays

    prodigalmaster Level 2

      Hello, I created a 2 dimensioned array, not sure if it is done in the correct way but it works like this:

      var arrLines:Array = new Array(new Array());
      arrLines.pop(); // because it creates an empty value to begin with


      Anyway, I am not sure how to access individual values within this array.


      arrLines.push([100, 200],[300, 400]); // creates 2 compartments each with 2 sub compartments
      trace(arrLines[0]); //displays 100, 200


      How would I make it trace only 100 OR 200?