I have two keyframes in the main timeline I want to print when the user clicks a button on frame 1. I am trying to do this with the code below but although I get the print dialogue to come up it doesn't see to add the pages. Not sure if I am targeting the right thing. Any help is greatly appreciated. Thanks in advance.
print_bu.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_190);
function fl_MouseClickHandler_190(event:MouseEvent):void {
var myPrintJob:PrintJob = new PrintJob();
var result:Boolean = myPrintJob.start();
if (result) {
this.myPrintJob.addPage(MovieClip(root), null, {printAsBitmap:true}, 2);
this.myPrintJob.addPage(MovieClip(root), null, {printAsBitmap:true}, 3);
myPrintJob.send();
} else {
//User does not have printer or user canceled print action
}
}