Sending the print job to the printer
To send the print job to the printer after using the
calls, use the
addPage()
method, which causes Flash Player to stop spooling the print job so that
PrintJob.send()
the printer starts printing.
Deleting the print job
After sending the print job to a printer, use the ActionScript function
to
delete PrintJob()
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
and
methods for printing. However, to print targeting Flash
print()
printAsBitmap()
Player 6 and earlier versions, back to Flash Player 4.0.25 (Windows) and 4.0.20 (Macintosh),
you can use
) and
functions and frame labels—classic functionality
print(
printAsBitmap()
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 won't print.
To specify frames as printable, you label the frames.
Printing frames independent of the PrintJob class
543
Need help?
Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?
Questions and answers