title: adding Bitmaps to various frames in movieClip in as3
body: <p>I have a movieClip and I want attach to this movieClip bitmaps. I want attach each bitmap to different frame of movieClip. I have tried something like this, but it is not working. It is for memory game I am creating. </p>
  
  <pre><code>for(var i : int = 0; i &lt; cardList.length; i++){
      var helpVar : int = cardList[i].pictureOfCard;
      cardList[i].gotoAndStop(cardList[i].pictureOfCard+2);
      var bitmap : Bitmap = new Bitmap(bitMapArray[helpVar].bitmapData.clone());
      cardList[i].addChild(bitmap);
      cardList[i].gotoAndStop(1);
  }
  </code></pre>