Chapter 18: Printing From Swf Files - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

You can add printing functionality to your Macromedia Flash MX 2004 and Macromedia
Flash MX Professional 2004 document that lets users print from Flash Player. You can use
the ActionScript PrintJob class, or you can use the
functions. Users can also access the Flash Player context menu and select the Print command
there.
Additionally, users can print from a browser, rather than from Flash Player, by selecting a
command such as File > Print from the browser window. However, printing from Flash Player
directly, rather than from a browser window Print menu, offers several advantages, including
the following:
Users can print all frames or certain frames that you've labeled as printable from Flash Player.
Additionally, you can set the print area of a frame.
You can specify that content print as vector graphics (to take advantage of higher resolution) or
as bitmaps (to preserve transparency and color effects).
The ActionScript PrintJob object improves upon the
functions by adding the ability to print dynamically rendered pages as a single print job. The
object also provides the user's printer settings, which can be used to format reports
PrintJob
specifically for the user. See
Flash Player versions earlier than 4.0.25 (Windows) or 4.0.20 (Macintosh) do not support
printing frames directly. Flash Player 7 and later supports the PrintJob class.
This chapter contains the following sections:
Controlling printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Using the ActionScript PrintJob class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Building a print job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
Starting a print job. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Printing frames independent of the PrintJob class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Changing the printed background color. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
Using frame labels to disable printing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
Printing from SWF Files
print()
"Using the ActionScript PrintJob class" on page
CHAPTER 18
or
printAsBitmap()
and
print()
printAsBitmap()
ActionScript
376.
375

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents