EasyManua.ls Logo

MACROMEDIA FLASH 8-USING FLASH - Printing Frames Independent of the Printjob Class

MACROMEDIA FLASH 8-USING FLASH
678 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Printing frames independent of the PrintJob class 543
Sending the print job to the printer
To send the print job to the printer after using the addPage() calls, use the
PrintJob.send() method, which causes Flash Player to stop spooling the print job so that
the printer starts printing.
Deleting the print job
After sending the print job to a printer, use the ActionScript function delete PrintJob() to
delete the PrintJob object, which frees memory. For more information, see
delete
statement in ActionScript 2.0 Language Reference.
Printing frames independent of the
PrintJob class
The PrintJob class, available for Flash Player 7 and later, offers many advantages over the
print() and printAsBitmap() methods for printing. However, to print targeting Flash
Player 6 and earlier versions, back to Flash Player 4.0.25 (Windows) and 4.0.20 (Macintosh),
you can use
print() and printAsBitmap() functions and frame labels—classic functionality
that remains part of the authoring tool and does not use the PrintJob class.
To set up printing from Flash Player independent of the PrintJob class, you can specify frames
to print and set their print area.
For more information on use of the PrintJob class, see “Using the ActionScript PrintJob class
on page 537.
Designating printable frames (when not using the
PrintJob object)
All frames in the specified Timeline print by default. You might want to limit the number of
frames that print—for example, if you have a lengthy animation of dozens of frames. You can
designate specific frames in a SWF file as printable in order to print only those frames;
unspecified frames wont print.
To specify frames as printable, you label the frames.

Table of Contents

Related product manuals