0 Replies Latest reply on Aug 20, 2006 11:56 AM by afes

    Copy Clip Frame via Bitmap

    afes
      I want to copy a frame from one movieClip (src) to another (dst) via BitmapData. So, what do I have:

      var bm:BitmapData = new BitmapData(src._width,src._height,true,0x00FFFFFF);
      bm.draw(src,new Matrix(),new ColorTransform(),"normal",new Rectangle(0,0,640,480));
      dst.attachBitmap(bm,dst.getNextHighestDepth());

      both movieClips are 640x480, and when I perform this code, I get the following :

      clip at starting point (320,240) from src copies to starting point (320,240) to dst, so I got only 25% of whole canvas copied, I've tried few things with new Matrix() and new Rectangle() but it didn't worked out.