Ho preso da un tuorial questo:

// create PrintJob object
var my_pj:PrintJob = new PrintJob();

// display print dialog box
if (my_pj.start()) {
// boolean to track whether addPage succeeded, change this to a counter
// if more than one call to addPage is possible
var pageAdded:Boolean = false;

// 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:80 0});
}
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:60 0});
}

// send pages from the spooler to the printer
if (pageAdded) {
my_pj.send();
}
}

// clean up
delete my_pj;
Ma non funziona, l'ho messo in un on(release) ma mi dice:

Scena=Scene 1, Livello=nav, Fotogramma=1:Linea 7: È previsto '}' o ','
pj.addPage (0, {xMin : 0, xMax: 400: yMin: 0, yMax: 400});

Scena=Scene 1, Livello=nav, Fotogramma=1:Linea 1: L'istruzione deve apparire all'interno del gestore on
btn.onRelease = function()

Scena=Scene 1, Livello=nav, Fotogramma=1:Linea 8: L'istruzione deve apparire all'interno del gestore on
pj.addPage("mc", {xMin : -300, xMax: 300, yMin: 400, yMax: 800});

Scena=Scene 1, Livello=nav, Fotogramma=1:Linea 9: L'istruzione deve apparire all'interno del gestore on
pj.send();

Scena=Scene 1, Livello=nav, Fotogramma=1:Linea 10: Rilevato '}' imprevisto
}