7 Replies Latest reply on Jan 4, 2008 12:57 PM by kglad

    attachBitmap shows up offcentered

    relief8 Level 1
      This is my code:

      var sourceMC = _parent.review; // mc to copy from
      var bd = new flash.display.BitmapData(sourceMC._width,
      sourceMC._height); // create bitmap data
      bd.draw(sourceMC); // copy the source MC into the bitmap data
      copyMC.attachBitmap(bd, 200); // attach the bitmap data to where you want it copied to

      The problem is that the sourceMC content is centered inside the movieclip instead of being top left justified so when it's displayed in the copyMC you only see a part of the image.

      Is there any fix for this other than moving all the content in my movieclip to be top left justified?