title: removing children from an Array works... sometimes
body: <pre><code>function addEffect()
  {
  var thisEffect = new MyEffect; //Simple movieClip
  addChild(thisEffect);
  effectArray[0] = thisEffect;
  }
  </code></pre>
  
  <p>the above works fine. And later I remove it... The Below works fine also.</p>
  
  <pre><code>function removeEffect()
  {
      if(effectArray[0] != null)
      {
       removeChild(effectArray[0]);
      }
  }
  </code></pre>
  
  <p>However, after I use the functions again, somtimes the next turn, sometimes two turns later I get:
      Error #2025: The supplied DisplayObject must be a child of the caller.
  Oddly, I'm using the same technique to add and remove other movieclips, and it is working fine for everything else. I am not referencing the effectArray or anything inside it, outside of these two functions, which are both inside Main.as</p>