printJob question

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Anyone using the printJob class? I understand how it works but I can't seem to get it to target th correct movieclip. I just keep getting blank pages printed. Anyone have any idea how to get around that?

Code: [ Select ]
print_btn.onRelease = function(){
    //var printClip = this._parent.print_mc;
    var my_pj:PrintJob = new PrintJob();
    if (my_pj.start()) {
        var pagesToPrint:Number = 0;
        if (my_pj.addPage("print_mc",{xMin:0,xMax:500,yMin:0,yMax:800})) {
            pagesToPrint++;
        }
        if (pagesToPrint > 0) {
            my_pj.send(); // print page(s)
        }
    }
    
}
  1. print_btn.onRelease = function(){
  2.     //var printClip = this._parent.print_mc;
  3.     var my_pj:PrintJob = new PrintJob();
  4.     if (my_pj.start()) {
  5.         var pagesToPrint:Number = 0;
  6.         if (my_pj.addPage("print_mc",{xMin:0,xMax:500,yMin:0,yMax:800})) {
  7.             pagesToPrint++;
  8.         }
  9.         if (pagesToPrint > 0) {
  10.             my_pj.send(); // print page(s)
  11.         }
  12.     }
  13.     
  14. }


"print_mc" is located on the root timeline since any attempt at placing a path into the target seems to break everything.

Any thoughts?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

I fixed it. Apparently the Flash help is wrong and there should not be quotes around the target clip (I know why would you anyway, but thats how it was written in both the flash help and the live docs)

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.