Printasbitmap Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

printAsBitmap function

printAsBitmap(target:Object, boundingBox:String) : Void
Prints the
movie clip as a bitmap according to the boundaries specified in the
target
parameter (
,
bmovie
bmax
contain frames with objects that use transparency or color effects. The
action prints at the highest available resolution of the printer in order to maintain as much
definition and quality as possible.
If your movie clip does not contain alpha transparencies or color effects, Macromedia
recommends that you use
If you use
for the
bmovie
print area is determined by the Stage size of the loaded movie clip. (The loaded movie clip
does not inherit the main movie clip's Stage size.)
All the printable elements in a movie clip must be fully loaded before printing can begin.
The Flash Player printing feature supports PostScript and non-PostScript printers. Non-
PostScript printers convert vectors to bitmaps.
Availability: ActionScript 1.0; Flash Player 4 - (4.0.20.0) If you are authoring for Flash Player
7 or later, you can create a PrintJob object, which gives you (and the user) more control over
the printing process. For more information, see the PrintJob class entry.
Parameters
- The instance name of the movie clip to print. By default, all of the frames
target:Object
in the movie clip are printed. If you want to print specific frames in the movie clip, attach a
frame label to those frames.
boundingBox:String
parameter in quotation marks (" or '), and specify one of the following values:
Designates the bounding box of a specific frame in a movie clip as the print area
bmovie
for all printable frames in the movie clip. Assign a
bounding box you want to use as the print area.
Designates a composite of all the bounding boxes of all the printable frames as the
bmax
print area. Specify the
size.
Indicates that the bounding box of each printable frame should be used as the
bframe
print area for that frame. This changes the print area for each frame and scales the objects
to fit the print area. Use
want each object to fill the printed page.
, or
). Use
bframe
printAsBitmap()
for better quality results.
print()
parameter but do not assign a
boundingBox
- A modifier that sets the print area of the movie clip. Enclose this
parameter if the printable frames in your movie clip vary in
bmax
if you have objects of different sizes in each frame and
bframe
to print movie clips that
printAsBitmap()
label to a frame, the
#b
frame label to the frame whose
#b
Global Functions
#p
91

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF