User Guide
1022 ActionScript classes
■ 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 parameter, or if it is passed incorrectly, the full Stage area of
target is printed. If you don't want to specify a value for printArea but want to specify a
value for
options or frameNumber, pass null for printArea.
options:Object [optional] - A parameter that specifies whether to print as vector or bitmap,
in the following format:
{printAsBitmap:Boolean}
The default value is false, which represents a request for vector printing. To print target as
a bitmap, pass
true for printAsBitmap. Remember the following suggestions when
determining which value to use:
■ If the content that you're printing includes a bitmap image, use {printAsBitmap:true}
to include any transparency and color effects.
■ If the content does not include bitmap images, omit this parameter or use
{printAsBitmap:false} to print the content in higher quality vector format.
If
options is omitted or is passed incorrectly, vector printing is used. If you don't want to
specify a value for
options but want to specify a value for frameNumber, pass null for
options.
frameNum:Number [optional] - A number that lets you specify which frame to print; passing a
frameNumber does not cause the ActionScript on that frame to be invoked. If you omit this
parameter, the current frame in
target is printed.
NOTE
If you have previously used print(), printAsBitmap(), printAsBitmapNum(), or printNum()
to print from Flash, you might have used a
#b frame label to specify the area to print.
When using the
addPage() method, you must use the printArea parameter to specify the
print area;
#b frame labels are ignored.
NOTE
If you have previously used print(), printAsBitmap(), printAsBitmapNum(), or printNum()
to print from Flash, you might have used a
#p frame label on multiple frames to specify
which pages to print. To use
PrintJob.addPage() to print multiple frames, you must issue
a
PrintJob.addPage() command for each frame; #p frame labels are ignored. For one way
to do this programmatically, see the Example section.