MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1028

Actionscript 2.0 language reference
Table of Contents

Advertisement

Because the user sees information such as "Printing page 1" immediately after clicking OK,
you should call the
PrintJob.addPage()
possible.
If this method returns
operating system's Print dialog box), any subsequent calls to
will fail. However, if you test for this return value and don't send
PrintJob.send()
PrintJob.addPage()
make sure the print spooler is cleared, as shown in the following example:
var my_pj:PrintJob = new PrintJob();
var myResult:Boolean = my_pj.start();
if(myResult) {
// addPage() and send() statements here
}
delete my_pj;
Availability: ActionScript 1.0; Flash Player 7
Returns
- A Boolean value:
Boolean
if the user clicks Cancel or if an error occurs.
false
1028
ActionScript classes
and
(for example, if the user clicks Cancel instead of OK in the
false
commands as a result, you should still delete the PrintJob object to
if the user clicks OK when the print dialog boxes appear;
true
commands as soon as
PrintJob.send()
PrintJob.addPage()
and

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents