A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: Printing

  1. #1
    Member
    Join Date
    Aug 2005
    Posts
    34

    Printing

    Hello,

    I have set up a mc buttons to print on release this is the code that I used

    b10.onRollOver = over;
    b10.onRollOut = out;
    b10.onRelease = b10release;
    function b10release(){
    printNum(0,"bframe");
    }
    b10.buttText.buttonText.text = "Keypad Mode English Version";

    This works well. The problem that I am having is that I have four different buttons set up to print four different documents. These documents are PDF that I have imported to the main library and placed on the stage.

    The thing is that I can not get the different pages to print just the first one.

    Not sure how to correct this.


    thanks,
    Jenn

  2. #2
    Member
    Join Date
    Aug 2005
    Posts
    34
    Still having a problem not sure how to correct it.

    Jenn

  3. #3
    Wait- what now? tidenburg's Avatar
    Join Date
    Dec 2005
    Posts
    1,471
    have you tried grouping them all into one PDF?
    "I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."

  4. #4
    Member
    Join Date
    Aug 2005
    Posts
    34
    I need them to be printed seperately. I have set up 4 different buttons to print four different pages. Is this possible?????

    Jenn

  5. #5
    Member
    Join Date
    Aug 2005
    Posts
    34
    I still haven't figured out how this is done..

    I have four different documents and four buttons, when the user clicks on the different buttons the doc correct page is printed.

    I am sorry if I am not clear on what I am looking for..

    Right now when I cleck on the different buttons the same document prints.....


    Jenn

  6. #6
    Member
    Join Date
    Aug 2005
    Posts
    34
    Is there anyone that could clarify this for me???

  7. #7
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    What does the code look like on the other buttons?

    _t
    I don't feel tardy.

  8. #8
    Member
    Join Date
    Aug 2005
    Posts
    34
    It looks the same way.

  9. #9
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    printNum prints the level that you assign it. In your case you have said to print level 0 or the _root. If each button has the same code on it, then why would it print different things?

    If you load your PDFs into different levels and change the script on each button to print the appropriate level, things should work out for you.

    _t
    I don't feel tardy.

  10. #10
    Member
    Join Date
    Aug 2005
    Posts
    34
    ok now i feel stupid... The files that I am trying to print on on different frames but in the same layer. Is it code that locates them on different levels????

    Jenn

  11. #11
    Senior Member Shotsy247's Avatar
    Join Date
    Apr 2001
    Location
    Be there in a minute!
    Posts
    1,386
    I would use print and not printNum.

    1. Put each of you PDFs into a seperate movieclip.
    2. Place the movies off the viewable area of the stage.
    3. Give each of them a different instance name.

    Code for buttons goes on a frame not on the buttons:

    code:
    myBtn1.onRelease = function(){
    print(PDFHolder1, "bframe");
    }

    myBtn2.onRelease = function(){
    print(PDFHolder2, "bframe");
    }

    myBtn3.onRelease = function(){
    print(PDFHolder3, "bframe");
    }



    No need to feel stupid. Printing is tricky. I'm sure there are many more ways to accomplish this,including using a PrintJob, but this should work.
    I don't feel tardy.

  12. #12
    Member
    Join Date
    Aug 2005
    Posts
    34
    Thank you for the reply I will try this and let you know...

    Jenn

  13. #13
    Member
    Join Date
    Aug 2005
    Posts
    34
    Thank you soooo much this worked.

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