title: how do i get an Array from another class?
body: <p>I am trying to parse an array from 1 class to another, but i couldnt to manage to do it.</p>
  
  <p>I am trying to pass the array that is selected from 1st Class file to the second. What is happening in the 1st class file is as follows : 1.) List of array are split and put into boxes 2.) Box is clicked and that specific group of array is selected 3.) That array is then send over/retrieve from the 2nd Class file.</p>
  
  <p>At the moment i can select and trace the group of array elements that are selected, but not sure how to transfer them to the next class. </p>
  
  <pre><code>function gotoscene(e: MouseEvent):void{
  
          var searchString = listings;
               var index:Number;
  
              index = searchString.indexOf(e.target);
  
          trace (test[index].nobed,test[index].zip,test[index].Location,test[index].price);
  
  
  
              while(_contentHolder.numChildren &gt; 0)
             {
  _contentHolder.removeChildAt(0);
  
         }
  </code></pre>
  
  <p>Thanks for your time!</p>
  
  <p>Edit:
  adding a </p>
  
  <pre><code>public var somedata:String;
  
       function gotoscene(e: MouseEvent):void{
  
          var searchString = listings;
               var index:Number;
  
              index = searchString.indexOf(e.target);
  
          somedata = test[index].nobed,test[index].zip,test[index].Location,test[index].price;
  
  var list :Listingdetailinfo = new Listingdetailinfo(somedata);
  </code></pre>
  
  <p>Class 2 </p>
  
  <pre><code>        public function Listingdetailinfo(initdata:Array) {
  
  
              somedata=initdata;
  
  
                  trace(initdata);
  
  }
  </code></pre>