title: pushing or adding arrays as values into a multi-dimensional array in actionscript 3.0
body: <p>I am running into some trouble adding an array into another array to create a multi-dimensional array.</p>
  
  <p>The code appears as below:</p>
  
  <pre><code>var slideDataArray:Array = new Array();
  var slideShowDataArray:Array = new Array();
  
  slideDataArray[0] = xmlData.SlideShowParameters.SlideShowImagesDirectory;
  slideDataArray[1] = xmlData.SlideShowParameters.SlideShowTimeInterval.valueOf();
  slideDataArray[2] = xmlData.SlideShowParameters.SlideShowWidth.valueOf();
  slideDataArray[3] = xmlData.SlideShowParameters.SlideShowHeight.valueOf();
  slideDataArray[4] = slides.length();
  
  slideShowDataArray[0] = slideDataArray;
  
  for (i = 0; i &lt; slides.length(); i++)   {
      // Read data from Slides tag in the XML file into slideDataArray 
      slideDataArray[0] = slides[i].SlideImage.toString();
      slideDataArray[1] = slides[i].SlideText.toString();
      slideDataArray[2] = slides[i].SlideLink.toString();
  
      // Input the data from slideDataArray into the array for the slideshow (slideShowDataArray) 
      slideShowDataArray[i + 1] = slideDataArray;
  }
  // end of FOR loop
  </code></pre>
  
  <p>I am looking for a means of placing the slideDataArray into a 'slot' or value of slideShowDataArray so that I can in the end pass the slideShowDataArray as a parameter to another function.</p>
  
  <p>As of now, the last slideDataArray appears 11 times (the loop runs 11 times) in slideShowDataArray and the way the code is written the slideDataArray is unique every iteration of the loop.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks in advance...</p>