Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

myCapsules forum v.1.1.10

    •  
      CommentAuthorsipp11
    • CommentTimeMay 20th 2009
     permalink
    var my_print_job:PrintJob = new PrintJob();
    var myResult:Boolean = my_print_job.start();
    if(myResult) {

    // if you need to scale to fit the paper, then here it is
    var x:Number = _root._xscale;
    var y:Number = _root._yscale;
    _root._xscale = 75;
    _root._yscale = 75;

    // print the whole page
    my_print_job.addPage("_root", {xMin:0,xMax:800,yMin:0,yMax:600});
    // stretch movie back to normal
    _root._xscale = x;
    _root._yscale = y;
    my_print_job.send();
    }
    // clear this print job out of memory
    delete my_print_job;


    You also can add page to this by
    xxx.addPage("_root", {xMin:0,xMax:800,yMin:0,yMax:600}, {printAsBitmap:Boolean}
    , <frame#>);

    Optional
    - {xMin:0,xMax:800,yMin:0,yMax:600}
    - {printAsBitmap:Boolean}
    - <frame#>

    Reference: PrintJob.addPage
Add your comments
  • Format comments as
Attachments