printJob question

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post November 27th, 2007, 2:59 pm

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?
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 27th, 2007, 2:59 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post November 27th, 2007, 3:52 pm

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)
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 33 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.