1 Reply Latest reply on Aug 10, 2007 3:05 PM by ntsiii

    using multi-dimensional arrays

      I need to know how to declare, populate and get data from a multi-dimensional array. please let me know if any of you have any good sample code.
        • 1. Re: using multi-dimensional arrays
          ntsiii Level 3
          Since arrays are not bindable in Flex, I haven't worked with them much recently, so i don't recall all the syntax.

          A multi dimensional array is an array of arrays of arrays....

          You can access an element using bracket notation:
          var s:String = arrayMyValues[0][1]; //the first row, second column

          I don't recall if you can set them that way. But certainly you can create an array, populate it, and push it onto another array.