I am using the following code to print frame 21 in Scene 2 of my application. However, when the button is pressed, it reverts back to Scene 1 and prints frame 21 from that. How can I correct this???
on (Release) {
var pj = new PrintJob();
var success = pj.start();
if(success)
{
pj.addPage(0,{xMin:130, xMax:930, yMin:0, yMax:1100}, {printAsBitmap:false}, 21);
pj.send();
}
delete pj;
}
Can someone please help…