Your Ad Here

Posted By

arpo on 09/29/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

dubogii


PrintJob Basics


 / Published in: ActionScript 3
 

More info here http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/printing/PrintJob.html

  1. import flash.printing.*;
  2. import flash.geom.Rectangle;
  3.  
  4.  
  5. private function doPrint():void
  6. {
  7. var _print:PrintJob = new PrintJob();
  8. if(_print.start()){
  9. var contentArea:Rectangle;
  10. //Use this to specify an area of the MC
  11. //contentArea = new Rectangle(0,0,550,550);
  12. _print.addPage(projLayer, contentArea);
  13. _print.send();
  14. }
  15. }

Report this snippet  

You need to login to post a comment.