Printing Frames Independent Of The Printjob Class - MACROMEDIA FLASH MX 2004-USING FLASH Use Manual

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

Advertisement

Sending the print job to the printer
To send the print job to the printer after using the
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 the PrintJob object, which frees memory. For more information, see
ActionScript 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
printAsBitmap()
earlier versions, back to Flash Player 4.0.25 (Windows) and 4.0.20 (Macintosh), you can use
) and
print(
printAsBitmap()
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
on page
376.
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.
To designate printable frames:
Open or make active the SWF file that you want to publish.
1.
Select the desired frame in the Timeline that you want to make printable and add a keyframe.
2.
In the Property inspector (Window > Properties), enter #p in the Label text box to specify the
3.
frame as printable.
Repeat steps 2 and 3 for each frame you want to designate as printable.
4.
Note: If you have multiple #p labels in your document, you might receive an Output window
message when you test or publish your SWF file that indicates that the document contains
duplicate frame labels. You can ignore the message if the duplicate labels are all #p labels.
methods for printing. However, to print targeting Flash Player 6 and
functions and frame labels—classic functionality that remains

Printing frames independent of the PrintJob class

calls, use the
addPage()
delete PrintJob()
"Using the ActionScript PrintJob class"
PrintJob.send()
to
in Flash
delete
print()
381

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents