Name
print( ) Global Function — print the frames of a movie or movie clip using vectors
Availability
Flash 5
Synopsis
print(target, boundingBox)
Arguments
- target
A string or reference indicating the path to the movie clip or document level to print (references are converted to paths when used in a string context).
- boundingBox
A string indicating how the printed frames of
target
should be cropped when printed. Cropping is defined by a bounding box that represents the entire printed page. The region oftarget
included in the printed page can be set using one of three legal values forboundingBox
(which must be a literal string):- “bframe”
The bounding box for each printed frame is set individually to match the size of each frame’s contents. Hence, every printed frame’s content is scaled to fill the entire printed page.
- “bmax”
The area occupied by the content of all printed frames is combined to form a general bounding box. Each printed frame’s content is scaled and placed on the printed page relative to the general bounding box.
- “bmovie”
The bounding box for all printed frames is set to the size of a single, designated frame in the
target
clip. Content of printed frames is cropped to the bounding box of that designated frame. To designate a frame as the bounding box, assign it the label#b
.
Description
Printing a Flash movie using a web browser’s built-in print
function behaves inconsistently and often results in poor quality
printouts. Using the print( )
function, we can print the contents of a ...
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.