A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: PrintJob Class; printing selective layers

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    7

    PrintJob Class; printing selective layers

    I have a picture gallery that i want to allow users to print off specific pictures from. Right now it prints off exactly what they see in the gallery which includes the next button, the print button and the menu. How do I tell my PrintJob to only print a certain layer? I just want the picture itself to print.

  2. #2
    Member
    Join Date
    Nov 2003
    Location
    USA
    Posts
    36
    Just curious.. what does the code look like that's on your print button?

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    7
    This is the action script on my code:

    // add the event listener for the print button
    print_btn.addEventListener("click", prnt_funct);

    //function that prints the photo
    function prnt_funct(eventObj:Object)
    {
    var my_pj:PrintJob = new PrintJob();
    if (my_pj.start()) {
    if (my_pj.addPage(slideShow_mc.slides_mc[this])) {
    my_pj.send();
    }
    }
    delete my_pj;
    }

  4. #4
    the flashing dutchman :)
    Join Date
    Aug 2006
    Location
    holland
    Posts
    6
    place the picture in a movieclip of its one and print that.
    as far as I know you can only print entire movieclips not single layers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center