The coordinates you specify for
point of the
_root
must provide all four coordinates. The width (
greater than 0.
Points are print units of measurement, and pixels are screen units of measurement; one point is
equal in size to one pixel. You can use the following equivalencies to convert inches or centimeters
to twips, pixels or points (a twip is 1/20 of a pixel):
•
1 pixel = 1 point = 1/72 inch = 20 twips
•
1 inch = 72 pixels = 72 points = 1440 twips
•
1 cm = 567 twips
Note: If you have previously used
print from Flash, you used a
method, you must use the
If you omit the
printArea
printed. If you don't want to specify a value for
or
options
frameNumber
An optional parameter that specifies whether to print as vector or bitmap, in the
options
following format:
{printAsBitmap:Boolean}
By default, pages are printed in vector format. To print
. The default value is
printAsBitmap
in mind the following suggestions when determining 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 passed incorrectly, vector printing is implemented. If you don't want to
options
specify a value for
options
An optional number that lets you specify which frame to print; notice that any
frameNumber
ActionScript on the frame is not invoked. If you omit this parameter, the current frame in
is printed.
Note: If you previously used
from Flash, you may have used a
use
PrintJob.addPage()
each frame;
frame labels are ignored. For one way to do this programmatically, see the example
#p
later in this entry.
Returns
A Boolean value of
Description
Method; sends the specified level or movie clip as a single page to the print spooler. Before using
this method, you must use
times for a print job, you must use
printArea
movie (if
= 0) or of the level or movie clip specified by
target
,
print()
frame label to specify the area to print. When using the
#b
parameter to specify the print area;
printArea
parameter, or if it is passed incorrectly, the full Stage area of
, pass
for
null
printArea
false
to print the content in higher quality vector format.
but want to specify a value for
,
print()
printAsBitmap()
frame label on multiple frames to specify which pages to print. To
#p
to print multiple frames, you must issue a
if the page was successfully sent to the print spooler,
true
PrintJob.start()
PrintJob.send()
represent screen pixels relative to the registration
) and height (
xMax-xMin
,
printAsBitmap()
printAsBitmapNum()
but want to specify a value for
printArea
.
target
, which represents a request for vector printing. Keep
frameNumber
,
printAsBitmapNum()
; after calling
PrintJob.addPage()
to send the spooled pages to the printer.
target
) must each be
yMax-yMin
, or
printNum()
addPage()
frame labels are ignored.
#b
as a bitmap, pass
true
{printAsBitmap:true}
, pass
for
null
, or
printNum()
command for
PrintJob.addPage()
otherwise.
false
one or more
PrintJob.addPage()
. You
to
is
target
for
to
.
options
target
to print
597
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers