MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 397

Actionscript language reference
Table of Contents

Advertisement

// check the user's printer orientation setting
// and add appropriate print area to print job
if (my_pj.orientation == "portrait") {
// Here, the printArea measurements are appropriate for an 8.5" x 11"
// portrait page.
pageAdded = my_pj.addPage(this,{xMin:0,xMax:600,yMin:0,yMax:800});
}
else {
// my_pj.orientation is "landscape".
// Now, the printArea measurements are appropriate for an 11" x 8.5"
// landscape page.
pageAdded = my_pj.addPage(this,{xMin:0,xMax:750,yMin:0,yMax:600});
}
// send pages from the spooler to the printer
if (pageAdded) {
my_pj.send();
}
}
// clean up
delete my_pj;
See also
PrintJob.addPage()
,
PrintJob.send()
PrintJob.start()
397

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents