3 Replies Latest reply on Sep 28, 2006 9:59 AM by kglad

    Two-dimensional Array problem

    mcw37
      I'm having problems assigning values to a two dimensional array. Below is an example:

      _global.test = new Array (new Array, new Array);

      for (n=1; n<=3; n++) {

      _global.test[n]["txt"] = n;

      trace(_global.test[n]["txt"]);

      }


      The following is the trace output:
      1
      undefined
      undefined

      Can someone please tell me what I'm doing wrong?