Flash CS3 Documentation |
|||
| Programming ActionScript 3.0 > Printing > Basics of printing | |||
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:
While you're working through this chapter, you might want to test the example code listings. Many of the code listings in the chapter are small portions of code rather than full working examples of printing or code that checks values. Testing the examples involves creating elements to be printed and using the code listings with those elements. The final two chapter examples are full examples of printing; those examples include the code that defines the content to be printed as well as performing printing tasks.
To test the example code listings:
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00000331.html