title: as3 moving image from one mc to another
body: <p>With the code below I created some imgMcA and some imgMcB then I loaded images into imgMcA ones. ImgMcBs have no image at that moment. So if one of imgMcA is clicked the image should be transferred to one of the empty imgMcBs (may be randomly) and if imgmcB is clicked later  the image should move  back to its imgMcA back. I could not find out how  I can accomplish this.  </p>
  
  <p>Thanks in advance</p>
  
  <pre><code> function imageList(mcname, img, index){
  
      var imgMcA:MovieClip=new MovieClip();
      imgMcA.graphics.beginFill(0x000000);
      imgMcA.graphics.drawRect(0,0,imgWidth,imgHeight);
      imgMcA.graphics.endFill();
      imgMcA.name=lemma;
      imgMcA.addEventListener(MouseEvent.CLICK, moveImage);
  
  
      var imgMcB:MovieClip=new MovieClip();
      imgMcB.graphics.beginFill(0x000000);
      imgMcB.graphics.drawRect(0,0,imgWidth,imgHeight);
      imgMcB.graphics.endFill();
      imgMcB.name=index;
      addChild(imgMcB);
  
  
      var imgLoader:Loader = new Loader();
      imgLoader.load(new URLRequest(img));
      imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, changeProperties);
      imgLoader.mouseEnabled=false;
      imgMcA.addChild(imgLoader);
  
    }
  
    function moveImage(evnt:MouseEvent){
  
    }
  </code></pre>