In ActionScript 3.0, you use the PrintJob class to create snapshots of display content to convert to the ink-and-paper representation in a printout. In some ways, setting up content for printing is the same as setting it up for on-screen display--you position and size elements to create the desired layout. However, printing has some idiosyncrasies that make it different from screen layout. For instance, printers use different resolution than computer monitors; the contents of a computer screen are dynamic and can change, while printed content is inherently static; and in planning printing, the constraints of fixed page size and possibility of multipage printing need to be considered.
Even though these differences may seem obvious, it's important to keep them in mind when setting up printing with ActionScript. Since accurate printing depends on a combination of the values specified by you and the characteristics of the user's printer, the PrintJob class includes properties that allow you to determine the important characteristics of the user's printer that you'll need to take into account.
The following common printing tasks are described in this chapter:
The following reference list contains important terms used in this chapter: