User Guide
487
18
CHAPTER 18
Printing
Adobe Flash Player 9 can communicate with an operating system’s printing interface so that
you can pass pages to the print spooler. Each page Flash Player sends to the spooler can
contain content that is visible, dynamic, or offscreen to the user, including database values
and dynamic text. Additionally, Flash Player sets the properties of the flash.printing.PrintJob
class based on a user’s printer settings, so that you can format pages appropriately.
This chapter details strategies for using the flash.printing.PrintJob class methods and
properties to create a print job, read a user’s print settings, and make adjustments to a print
job based on feedback from Flash Player and the user’s operating system.
Contents
What’s new for the PrintJob class using ActionScript 3.0 . . . . . . . . . . . . . . . . . . . .488
Printing a page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .488
Flash Player tasks and system printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
Setting size, scale, and orientation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 493
Example: Multiple-page printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
Example: Scaling, cropping, and responding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498