MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 598

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

If this method returns
canceled the print job), any subsequent calls to
calls to
PrintJob.addPage()
sends the successfully spooled pages to the printer.
If you passed a value for
(0,0 coordinates) of the printable area on the page; the printable area is determined by the
and
pageHeight
with the upper left corner of the printable area on the page, the printout is clipped to the right
and/or bottom if the area defined in
you haven't passed a value for
type of clipping takes place.
If you want to scale a movie clip before you print it, set its
MovieClip._yscale
values afterward. The scale of a movie clip has no relation to
that you print an area that is 50 x 50 pixels in size, 2500 pixels are printed. If you have scaled the
movie clip, the same 2500 pixels are printed, but at the scaled size.
The Flash Player printing feature supports PostScript and non-PostScript printers. Non-
PostScript printers convert vectors to bitmaps.
Example
The following example illustrates several ways to issue the
my_btn.onRelease = function()
{
var pageCount = 0;
var my_pj = new PrintJob();
if (my_pj.start())
{
// Print entire current frame of the _root movie in vector format
if (my_pj.addPage(0))
{
pageCount++;
// Starting at 0,0, print an area 400 pixels wide and 500 pixels high
// of the current frame of the _root movie in vector format
if (my_pj.addPage(0, {xMin:0,xMax:400,yMin:0,yMax:500}))
{
pageCount++;
// Starting at 0,0, print an area 400 pixels wide and 500 pixels high
// of frame 1 of the _root movie in bitmap format
if (my_pj.addPage(0, {xMin:0,xMax:400,yMin:0,yMax:500},
{
pageCount++;
// Starting 50 pixels to the right of 0,0 and 70 pixels down,
// print an area 500 pixels wide and 600 pixels high
// of frame 4 of level 5 in vector format
if (my_pj.addPage(5, {xMin:50,xMax:550,yMin:70,yMax:670},null, 4))
{
598
Chapter 12: ActionScript Dictionary
(for example, if you haven't called
false
were successful, the concluding
, the
printArea
properties set by
pageWidth
printArea
printArea
properties before calling this method, then set them back to their original
{printAsBitmap:true}, 1))
pageCount++;
PrintJob.addPage()
PrintJob.send()
and
coordinates map to the upper left corner
xMin
yMin
PrintJob.start()
is bigger than the printable area on the page. If
and the Stage is larger than the printable area, the same
MovieClip._xscale
printArea
addPage()
or the user
PrintJob.start()
will fail. However, if prior
command
. Because the printout aligns
and
. That is, if you specify
command.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents