Parameters
A number or string; the level or instance name of the movie clip to print. Pass a number
target
to specify a level (for example, 0 is the
specify the instance name of a movie clip.
An optional object that specifies the area to print, in the following format:
printArea
{xMin:topLeft, xMax:topRight, yMin:bottomLeft, yMax:bottomRight}
The coordinates you specify for
point of the
_root
You must provide all four coordinates. The width (
each be greater than 0.
Points are print units of measurement, and pixels are screen units of measurement; points are a
fixed physical size (1/72 inch), but the size of a pixel depends on the resolution of the particular
screen. You can use the following equivalencies to convert inches or centimeters to twips or points
(a twip is 1/20 of a point):
•
1 point = 1/72 inch = 20 twips
•
1 inch = 72 points = 1440 twips
•
1 cm = 567 twips
You can't reliably convert between pixels and points; the conversion rate depends on the screen
and its resolution. If the screen is set to display 72 pixels per inch, for example, one point is equal
to one pixel.
If you omit the
printArea
is printed. If you don't want to specify a value for
target
for
or
options
frameNumber
An optional parameter that specifies whether to print as vector or bitmap, in the
options
following format:
{printAsBitmap:Boolean}
The default value is
bitmap, pass
true
which value to use:
•
If the content that you're printing includes a bitmap image, use
include any transparency and color effects.
•
If the content does not include bitmap images, omit this parameter or use
{printAsBitmap:false}
If
is omitted or is passed incorrectly, vector printing is used. If you don't want to specify
options
a value for
options
frameNumber
writing Flex applications, you should omit this parameter or pass a value of 0.
392
Chapter 6: ActionScript Core Classes
printArea
movie clip (if
target
parameter, or if it is passed incorrectly, the full Flex screen area of
, pass
null
, which represents a request for vector printing. To print
false
for
printAsBitmap
to print the content in higher quality vector format.
but want to specify a value for
An optional number that is used in the Flash authoring environment. When
movie), or a string (in quotation marks [""]) to
_root
represent screen pixels relative to the registration
= 0) or of the level or movie clip specified by
xMax-xMin
printArea
for
.
printArea
. Remember the following suggestions when determining
frameNumber
) and height (
yMax-yMin
but want to specify a value
target
{printAsBitmap:true}
, pass
for
null
options
.
target
) must
as a
to
.
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?