Starting A Print Job - MACROMEDIA FLASH 8-USING FLASH Use Manual

Using flash
Table of Contents

Advertisement

Starting a print job

Calling the
PrintJob.start()
user's operating system and also prompts the user's operating system print dialog box to
appear.
If the user selects an option in the print dialog box to begin printing, the
method returns a value of
case the script should call only
values for the
paperHeight
properties.
Depending on the user's operating system, an additional dialog box might appear until
spooling is complete and the function
PrintJob.addPage()
elapse between the
PrintJob.start()
call, which sends the print job to the printer, Flash Player effectively calls
causing any pages that are added using
stop.
When a new print job is constructed, the
is called, after the user selects the print option in the operating system
PrintJob.start()
print dialog box, Flash Player retrieves the print settings from the operating system. The
function populates the following properties:
PrintJob.start()
Property
PrintJob.paperHeight
PrintJob.paperWidth
PrintJob.pageHeight
PrintJob.pageWidth
PrintJob.orientation
A point is a print unit of measurement that is equal in size to one pixel, a screen unit of
measure. For more information about unit equivalencies, see
on page
541.
method prompts Flash Player to spool the print job to the
. (The value is
true
). If successful, the
delete
,
,
paperWidth
pageHeight
PrintJob.send
and
PrintJob.send()
function call and the
PrintJob.addPage()
PrintJob()
Type
Unit
number
points
number
points
number
points
number
points
string
n/a
if the user cancels the print job, in which
false
PrintJob.start()
,
pageWidth
is called: Calls to
should be made expeditiously. If ten seconds
PrintJob.send()
to be printed and spooling to
properties are initialized to 0. When
Notes
Overall paper height.
Overall paper width
Height of actual printable area on the
page; does not include any user-set
margins
Width of actual printable area on the
page; does not include any user-set
margins
Portrait or landscape orientation
"About scaling"
PrintJob.start(
method sets
, and
orientation
function
PrintJob.send()
Starting a print job
)
,
539

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents