Description
Constructor; creates a PrintJob object that you can use to print one or more pages.
To implement a print job, use these methods in the sequence shown:
// create PrintJob object
my_pj = new PrintJob();
// display print dialog box
my_pj.start();
// add specified area to print job
// repeat once for each page to be printed
my_pj.addPage([params]);
my_pj.addPage([params]);
my_pj.addPage([params]);
my_pj.addPage([params]);
// send pages from the spooler to the printer
my_pj.send();
// clean up
delete my_pj;
In your own implementation of PrintJob objects, you should check for return values from
PrintJob.start()
PrintJob.addPage()
You cannot create a PrintJob object until any PrintJob object that you already created is no longer
active (that is, it either completed successfully or failed). If you try to create a second PrintJob
object (by calling
PrintJob object will not be created.
Example
See
PrintJob.addPage()
See also
PrintJob.addPage()
PrintJob.addPage()
Availability
Flash Player 7.
Usage
my_pj.addPage(target [, printArea] [, options ] [, frameNumber])
Parameters
The level or instance name of the movie clip to print. Pass a number to specify a level
target
(for example, 0 is the
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}
596
Chapter 12: ActionScript Dictionary
and
PrintJob.addPage()
.
) while the first PrintJob object is still active, the second
new PrintJob()
.
,
PrintJob.send()
movie), or a string (in quotation marks) to specify the instance name
_root
// instantiate object
// initiate print job
// send page(s) to spooler
// print page(s)
// delete object
before continuing to print. See the examples for
,
PrintJob.start()
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?