Description
Method; is used following
to the printer.
Example
See
PrintJob.addPage()
See also
PrintJob.addPage()
PrintJob.start()
Availability
Flash Player 7.
Usage
my_pj.start()
Parameters
None.
Returns
A Boolean value of
user clicks Cancel or if an error occurs.
Description
Method; displays the operating system's print dialog boxes and starts spooling. The print dialog
boxes give the user an opportunity to change print settings, and then populate the following read-
only properties (notice that 1 point equals 1 onscreen pixel):
Property
PrintJob.paperHeight
PrintJob.paperWidth
PrintJob.pageHeight
PrintJob.pageWidth
PrintJob.orientation
After the user clicks OK in the print dialog box, the player begins spooling a print job to the
operating system. You should issue any ActionScript commands that affect the printout, and then
you can begin using
you wish, use the height, width, and orientation properties this method returns to determine how
to format the printout.
Because the user sees information such as "Printing page 1" immediately after clicking OK, you
should call the
PrintJob.addPage()
600
Chapter 12: ActionScript Dictionary
PrintJob.start()
.
,
PrintJob.start()
if the user clicks OK when the print dialog boxes appear, or
true
Type
Number
Number
Number
Number
String
PrintJob.addPage()
and
and
PrintJob.addPage()
Units
Notes
Points
Overall paper height
Points
Overall paper width
Points
Height of actual printable area on the
page; any user-set margins are ignored
Points
Width of actual printable area on the
page; any user-set margins are ignored
n/a
"Portrait" or "landscape"
commands to begin sending pages to the spooler. If
commands as soon as possible.
PrintJob.send()
to send spooled pages
if the
false
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?