printPreview

Syntax: printPreview(document)

printPreview(any [, ... ])

Returns: TRUE if the user previews all the pages in the document

FALSE if the user cancels the print preview

This function displays an on-screen facsimile of the output that the print command will generate when it is passed the same set of parameters. printPreview will display a preview of a document as well as sets of strings, sprites, cast members, lists, etc. See the print command for a complete list of the elements that can be previewed.

Typing any key or clicking in the preview window advances to the next page; typing command-period (Escape on Windows) cancels the preview without displaying all the pages. When the document can't be displayed on the main screen at 100% size (which is most of the time, unless you have a big monitor), the page is scaled to fit.