A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: flash and printing

  1. #1
    Senior Member
    Join Date
    Mar 2003

    flash and printing


    would dynamic fields in flash print and show up on the paper?
    What is the best way to allow user to print from a flash presentation
    but just to print the flash window (for example if a flash presentation was running in a boxed window on the desktop. it prints that exactly on a press of a button script ?)

    also is there a way you could print a whole flash presentation ... pretty silly I know unless its a flashpaper ... but any ideas how this could be done in normal flash movie with lot of pages (frames) ...


  2. #2
    Senior Member random25's Avatar
    Join Date
    Apr 2002
    This is the only way i know of to print from flash:
        var pageCount = 0;
        var my_pj = new PrintJob();
        if (my_pj.start())
            if (my_pj.addPage(0))
            } // end if
            if (pagesToPrint > 0)
            } // end if
        } // end if
        delete my_pj;
    This will print the current frame, but it could probably be re-scripted to print only after all of the frames have been added to the print job. but i think you would have to go through the frames one at a time, adding them to the print job.

    Dynamic fields will print out.

    When you hit the print button the printers default dialog will pop up asking how many copys you want to print and whatnot.

    For it to print out correctly, your flash will need to be the right size to fill the paper, as there are no layout or resize options.

    Hopefully someone else here knows a better way to do it, as it really sucks this way.
    Last edited by random25; 03-01-2006 at 02:00 AM.

    If you want to make an apple pie from scratch, you must first create the universe. Carl Sagan

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