EasyManua.ls Logo

MACROMEDIA FLASH 8-USING FLASH - Controlling Printing

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...
536 Printing from SWF Files
This chapter contains the following sections:
Controlling printing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .536
Supported printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .537
Using the ActionScript PrintJob class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .537
Building a print job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .537
Starting a print job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
Printing frames independent of the PrintJob class. . . . . . . . . . . . . . . . . . . . . . . . . . .543
Changing the printed background color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .547
Using frame labels to disable printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .547
Printing from the Flash Player context menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .548
Publishing a document with printable frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
Controlling printing
To control what users can print, remember the following items as you set up documents and
movie clips for printing:
Adjust the page layout in any frames that you 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 clips
_visible property
to
false using the Actions panel. Changing the property of a movie clip with the
setProperty 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
_framesloaded (MovieClip._framesloaded property) in ActionScript 2.0 Language Reference.

Table of Contents

Related product manuals