title: putting CLASSES back in array as3
body: <p>I suppose I need to be able to get the name of the class an object belongs to.</p>
  
  <p>1: I have two classes </p>
  
  <pre><code>CandyBar
  BottledWater
  </code></pre>
  
  <p>2: I put their names in two arrays</p>
  
  <pre><code>var foodArray(CandyBar, BottledWater);
  var waterArray();
  </code></pre>
  
  <p>3: I add children to stage using the array; like this</p>
  
  <pre><code>var foodItem = new foodArray[i];
  </code></pre>
  
  <p>4: I later try and move the reference for BottledWater to the waterArray, but can't. I'm not creating any new object or anything, just moving the reference from one array to another. Furthermore, I cant remove the reference either.</p>
  
  <p>I suppose I could say I am adding children from an array, then wanting to push a reference to that "class" into another array, while removing the reference from the original array.</p>