PDA

View Full Version : print issues from MC embedded in scrollPane


james bluetouch
06-22-2004, 10:45 AM
Hi...

I have several dynamically generated movies embedded in a scroll pane formated so each MC fills one page of A4 (as soon as one is full it the data goes into the next). When i set up a printJob to loop through the movies they get cut off at the point where the scrollPanel stops (as if it is printing the scrollPane, not the MC's in it!).

Any ideas peeps... ???


on (press) {
printjob = new PrintJob();
confirmPJ = printjob.start();
for (i=0; i<=printJobMC; i++) {
trace("print job page added "+i);
printjob.addPage(this.scrollWindow.content["printJob"+i]);
}
printjob.send();
delete printjob;
}

james bluetouch
06-22-2004, 11:13 AM
So i've just tried duplicating the MC's from the scrollPanel to see if i can get the printJob to work without the panel. No such luck. I can't get them to duplicate at all.

Does anybody know if theres' limitations with using the scrollPane and the Movie Clip Methods ?

Just a thought!

BadDude
06-23-2004, 08:02 AM
You should set the _y coordinate of the content of the scrollpane, as it seen. the print will print only the visible content.

So store the _y of the content, set it to one page's height, add to print job, set it to two page height, add to job, and restore the original after you started the job.


my_pj = new PrintJob();
my_pj.start();
var temp = this._y;
this._y = 0

my_pj.addPage(this , {xMin:0, xMax:540, yMin:0, yMax:600}, null, 2)
this._y -= 600

my_pj.addPage(this , {xMin:0, xMax:540, yMin:600, yMax:1300}, null, 2)
this._y -= 600

my_pj.addPage(this , {xMin:0, xMax:540, yMin:1300, yMax:1900}, null, 2)

my_pj.send();
delete my_pj;
this._y = temp;

mcmcom
06-25-2004, 08:00 PM
i had similar problems. I just made sure to scale the content back to 100% and set X and Y to 0, 0. It worked no probs..

james bluetouch
06-29-2004, 11:27 AM
thank fellas .. i'll check it out today and report back ...