title: How to remove/reload movieclip/graphic in Flash CS5 with AS3
body: <p>I have a <code>setupBoard();</code> and a <code>setupBlocks();</code> in my function:</p>
  <pre><code>function init(e)
  {
      setupBoard();
      removeEventListener(Event.ENTER_FRAME , init);
      setupCat();
      setupBlocks();
  }
  
  function setupBoard()
  {
      
      var columns:Array = new Array();
      var i,j:int;
      var _place:place;
  
      for (i = 0; i &lt; 11; i++)
      {
          columns = [];
          for (j = 0; j &lt; 11; j++)
          {
              _place = new place();
              _place.thisX=i;
              _place.thisY=j;
              _place.thisDistance=Math.min(i+1,j+1,11-i,11-j)*11;
              _place.y = 56 * i + 3;
              _place.x = 5 + 71 * j + 35*(i%2);
              _place.buttonMode=true;
              _place.addEventListener(MouseEvent.CLICK, setBlock);
              columns[j] = _place;
              // SÆTTER TAL PÅ BRIKKERNE
              _place.thisText.text = _place.thisDistance + &quot; - &quot; + _place.thisX + &quot; : &quot; + _place.thisY;
              addChild(_place);
          }
          rows[i] = columns;
      }
  }
  </code></pre>
  <p>The &quot;place&quot; is the MovieClip</p>
  <p>this function loads when the game launches and when the game is finish/completed..</p>
  <p>the setupBoard, setup the board ofc, and the setupBlocks setup some movieclips, which contain some graphic.</p>
  <p>Here's my question, how do I remove/reload all the blocks when the game enters that function again?
  At the moment they are just placed upon each other, which I don't like at all.</p>