600
Chapter 12: ActionScript Dictionary
Description
Method; is used following
PrintJob.start()
and
PrintJob.addPage()
to send spooled pages
to the printer.
Example
See
PrintJob.addPage()
.
See also
PrintJob.addPage()
,
PrintJob.start()
PrintJob.start()
Availability
Flash Player 7.
Usage
my_pj
.start()
Parameters
None.
Returns
A Boolean value of
true
if the user clicks OK when the print dialog boxes appear, or
false
if the
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):
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
PrintJob.addPage()
commands to begin sending pages to the spooler. If
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()
and
PrintJob.send()
commands as soon as possible.
Property
Type
Units Notes
PrintJob.paperHeight
Number
Points
Overall paper height
PrintJob.paperWidth
Number
Points
Overall paper width
PrintJob.pageHeight
Number
Points
Height of actual printable area on the
page; any user-set margins are ignored
PrintJob.pageWidth
Number
Points
Width of actual printable area on the
page; any user-set margins are ignored
PrintJob.orientation
String
n/a
“Portrait” or “landscape”
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...