0 Replies Latest reply on Dec 8, 2006 2:47 AM by Jakob_Wagner

    Printing bitmapdata

    Jakob_Wagner
      Hi,

      I'm trying to print a page in flash which contains bitmapdata. I have not been able to do it.

      My swf contains two mc's. One named "from" which contains a jpg (not loaded but imported to stage) and one "target" which is empty.

      my code is:

      import flash.display.BitmapData;
      import flash.geom.Matrix;
      var w = from._width;
      var h = from._height;
      var snapshot:BitmapData = new BitmapData(w, h);
      snapshot.draw(from, new Matrix());
      target.attachBitmap(snapshot, 0);
      bPrint.onRelease = function()
      {
      var my_pj:PrintJob = new PrintJob();
      my_pj.start();
      my_pj.addPage(this._parent,{printAsBitmap: true}, 1);
      my_pj.send();
      };

      I do see the bitmap displayed correctly in the target clip, but when printing only the from mc is visible.

      Can anybody help, please.

      Thanks, Jakob.