03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

printAsBitmap function<br />

printAsBitmap(target:Object, boundingBox:String) : Void<br />

Prints the target movie clip as a bitmap according to the boundaries specified in the<br />

parameter (bmovie, bmax, or bframe). Use printAsBitmap() to print movie clips that<br />

contain frames with objects that use transparency or color effects. The printAsBitmap()<br />

action prints at the highest available resolution of the printer in order to maintain as much<br />

definition <strong>and</strong> quality as possible.<br />

If your movie clip does not contain alpha transparencies or color effects, <strong>Adobe</strong> recommends<br />

that you use print() for better quality results.<br />

If you use bmovie for the boundingBox parameter but do not assign a #b label to a frame, the<br />

print area is determined by the Stage size of the loaded movie clip. (The loaded movie clip<br />

does not inherit the main movie clip's Stage size.)<br />

All the printable elements in a movie clip must be fully loaded before printing can begin.<br />

The Flash Player printing feature supports PostScript <strong>and</strong> non-PostScript printers. Non-<br />

PostScript printers convert vectors to bitmaps.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4 - (4.0.20.0) If you are authoring for Flash Player<br />

7 or later, you can create a PrintJob object, which gives you (<strong>and</strong> the user) more control over<br />

the printing process. For more information, see the PrintJob class entry.<br />

Parameters<br />

target:Object - The instance name of the movie clip to print. By default, all of the frames<br />

in the movie clip are printed. If you want to print specific frames in the movie clip, attach a #p<br />

frame label to those frames.<br />

boundingBox:String - A modifier that sets the print area of the movie clip. Enclose this<br />

parameter in quotation marks (" or '), <strong>and</strong> specify one of the following values:<br />

■ bmovie Designates the bounding box of a specific frame in a movie clip as the print area<br />

for all printable frames in the movie clip. Assign a #b frame label to the frame whose<br />

bounding box you want to use as the print area.<br />

■ bmax Designates a composite of all the bounding boxes of all the printable frames as the<br />

print area. Specify the bmax parameter if the printable frames in your movie clip vary in<br />

size.<br />

■ bframe Indicates that the bounding box of each printable frame should be used as the<br />

print area for that frame. This changes the print area for each frame <strong>and</strong> scales the objects<br />

to fit the print area. Use bframe if you have objects of different sizes in each frame <strong>and</strong><br />

want each object to fill the printed page.<br />

94 <strong>ActionScript</strong> language elements

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!