MACROMEDIA FLASH 8-USING FLASH Use Manual page 540

Using flash
Table of Contents

Advertisement

Adding pages to a print job
You add pages to your print job with the
method can include as many as four parameters, the only required parameter is
. The three optional parameters are
level
If you are not using a particular optional parameter but are using other optional parameters,
use
in place of the excluded optional parameter.
NULL
With all four parameters, the function uses the following syntax:
MyPrintJob.addPage(target[,printArea:Object, options:Object,
frameNum:Number]):boolean;
If you provide an invalid parameter, the print job uses default parameter values, which are
specified in the following sections.
Each call to add a new page is unique, which lets you modify parameters without affecting
previously set parameters. For example, you can specify that one page print as a bitmap image
and another page print as a vector graphic. You can add as many new pages to your print job
as the print job requires. One call to add a page equals one printed page.
Any ActionScript that needs to be called to change a resulting printout must run before
the PrintJob.addPage() method is called. The ActionScript can, however, run before
or after a new PrintJob(). If a frame has a call to the PrintJob.addPage() method, the
call itself does not guarantee that the ActionScript script on that frame will run when that
frame is printed.
Specifying a target
The
parameter can be either a number that represents a level (such as 0 for the _root
target
document), or a string that represents the instance name of a movie clip (
Specifying a print area
The
optional parameter includes the following values:
printArea
{xMin:Number, xMax:Number, yMin:Number, yMax:Number}
540
Printing from SWF Files
PrintJob.addPage()
,
printArea
options
method. Although the
target/
, and
.
frameNum
"myMovieClip"
).

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-USING FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF