Designating printable frames (when not using the PrintJob object)
All frames in the specified Timeline print by default. You may want to limit the number of frames that printfor 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.
- Open or make active the SWF file that you want to publish.
- Select the desired frame in the Timeline that you want to make printable, and add a keyframe.
- In the Property inspector (Window > Properties), enter #p in the Label text box to specify the frame as printable.
- Repeat steps 2 and 3 for each frame you want to designate as printable.
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.
To control what users can print, keep the following in mind as you set up documents and movie clips for printing:
- Adjust the page layout in any frames that you'll designate as printable to match the desired printed output. Using Flash Player, you can print all shapes, symbols, bitmaps, text blocks, and text fields. Levels in a SWF file are not composited on print output.
- The Flash Player printer driver uses the HTML settings for dimension, scale, and alignment in the Publish Settings dialog box. Use these settings to control the print layout.
- The selected frames print as they appear in the movie clip symbol. You can let users print a movie clip that is not visible in a browser by setting the movie clip's
_visible
property to false
using the Actions panel. Changing the property of a movie clip with the Set Property action, tweening, or any transformation tool does not affect how a movie clip prints.
- For a movie clip to be printable, it must be on the Stage or workspace and it must be given an instance name.
- All elements must be fully loaded to print. You can use the movie clip
_framesloaded
property to check whether the printable content is loaded. For more information, see MovieClip._framesloaded
.